Skip to main content

Nimport

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.14

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.14
File Size Uploaded Provenance Actions
nimport-0.10.14.tar.gz 6.1 kB Without provenance Details for nimport-0.10.14.tar.gz

Release files / nimport-0.10.14.tar.gz

Download URL nimport-0.10.14.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0fa509aeecb635e05625dcc4ff9a1e3a1b91ccec3ebd1dcb03b1075529a254b9
BLAKE2b-256 checksum
How to use checksums
06d0adbc8ba86ab19f23fa63535685fa0b84019aa23ff1b62d41e81ecfe9beec
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.14

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