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
nimport-0.10.21.tar.gz 7.3 kB Details

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

Release history Release notifications | RSS feed

This release

0.10.21 This release

1 release file

0.10.20

1 release file

0.10.19

1 release file

0.10.18

1 release file

0.10.17

1 release file

0.10.16

1 release file

0.10.15

1 release file

0.10.14

1 release file

0.10.13

1 release file

0.10.12

1 release file

0.10.11

1 release file

0.10.10

1 release file

0.10.9

1 release file

0.10.8

1 release file

0.10.7

1 release file

0.10.6

1 release file

0.10.5

1 release file

0.10.4

1 release file

0.10.3

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10.0

1 release file

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