Skip to main content

Nimport

Requirements

  • Needs git to be installed for github provider to work

Use

!pip install --upgrade nimport
%load_ext nimport

Examples

  • Get a file from public repo and navigate to that file

    %nimport container="yaananth/hack-sample-note2" path="one.ipynb" provider="github" providerOptions={} navigate="trueOrAnythingHere"
    
  • Get a file from public repo and display a link to that file

    %nimport container="yaananth/hack-sample-note2" path="one.ipynb" provider="github" providerOptions={}
    
  • Get a file from private repo and navigate to that file

    %nimport container="yaananth/hack-sample-note2" path="one.ipynb" provider="github" providerOptions={{"token":"PATTOKENHERE"}} navigate="trueOrAnythingHere"
    
  • Clone a public repo and navigate to the boot strap file

    Needs git to be accessible

    %nimport container="yaananth/pipeline-delays" path="delays.ipynb" provider="github" providerOptions={"clone":"true"}
    
  • Parameterize notebook from URL

    from nimport.utils import open_nb, load_params
    params = load_params(currentUrl)
    open_nb("pipeline-delays/delays.ipynb", params, redirect=True)
    

Develop

Package

pip install -r requirements.txt python setup.py sdist

Publish

pip install twine twine upload dist/*

Test

Resources

Metadata

Release files for nimport 0.10.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nimport 0.10.15
File Size Uploaded Provenance Actions
nimport-0.10.15.tar.gz 5.8 kB Without provenance Details for nimport-0.10.15.tar.gz

Release files / nimport-0.10.15.tar.gz

Download URL nimport-0.10.15.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8a2e7bd96c7306a4701637a171c5a67b572bf41588ed638178a938904312b00c
BLAKE2b-256 checksum
How to use checksums
c203b798a5ae71395c9dca4ace389b380fc1c1afae46ccddf1ba70e5c02e4bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Security for nimport 0.10.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page