Skip to main content

Nimport

uses github action twine-upload

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)
    
  • Get URL from browser into python (Javascript to python communication in nteract)

    clientData = {}
    def callback(x):
        global clientData
        clientData = x
    parse_client_data(callback)
    print(clientData)
    

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

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.21
File Size Uploaded Provenance Actions
nimport-0.10.21.tar.gz 7.3 kB Without provenance Details for nimport-0.10.21.tar.gz

Release files / nimport-0.10.21.tar.gz

Download URL nimport-0.10.21.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
479a049ee391dad3b1e6de76cff9f42fa254afa0575967fe33cabdfcc20ea4f6
BLAKE2b-256 checksum
How to use checksums
cd9ae087cbb9f511941efe8a79cf28845d27abd3eac50dc3b63b1ab440d554c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/2.7.17

Security for nimport 0.10.21

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