Skip to main content

Create inline terminals in Jupyter Notebooks.

Project description

General instructions for building for pip distribution

After changing setup.py or any part of the JupyterTerminals codebase, increase the version number in setup.py appropriately, around line 37.

Then run the commands shown below to upgrade what's stored in pip

python3 setup.py prep_to_build npm_run_build sdist bdist_wheel

Uploading to the pypi test servers:

python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose

(For User name you can use willkessler.)

Installing to a host in the cloud, from the test servers:

python3 -m pip install --index-url https://test.pypi.org/simple/ jupyterterminals

Testing new installation on cloud host:

jupyter notebook —port=3001 —ip=127.0.0.1 —allow-root

Uploading to the pypi production servers:

python3 -m twine upload dist/*

(For User name you can use willkessler.)

General instructions for building for conda distribution

NB: this relies on jupyterterminals being in the main (production) pypi repository. First time steps:

mkdir conda
cd conda
rm -rf jupyterterminals
conda skeleton pypi jupyterterminals
conda install conda-verify

Modify jupyterterminals/meta.yaml to include build noarch: python. Modify jupyterterminals/meta.json to include github handle: willkessler

(Re)building on macosx:

(After you make updates, make sure to bump the version number in jupyterterminals/meta.yml.

conda build jupyterterminals
export TERMINALS_VERSION=0.1.1
anaconda upload /Users/will/anaconda/conda-bld/noarch/jupyterterminals-$TERMINALS_VERSION-py_0.tar.bz2

Then you want to convert to other architectures and upload these as well:

conda convert --platform all ~/anaconda/conda-bld/osx-64/jupyterterminals-$TERMINALS_VERSION-py36_0.tar.bz2 -o linux64_out
anaconda upload linux64_out/linux-64/jupyterterminals-$TERMINALS_VERSION-py36_0.tar.bz2

... etc for all the architectures you want to support. This last step doesn't seem to be necessary any more (01/23/2020).

To install you should be able to do :

conda install -c willkessler jupyterterminals

Building for Windows and building for pip on Windows

To debug issues on Windows, you need to have cygwin64 and node installed on the system. Then you need to use jupyterterminals/package.json_windows instead of jupyterterminals/package.json. This version of package.json has a different build step using utilities provided by Cygwin:

...
  "scripts": {
    "build": "/cygwin64/bin/rm.exe -rf terminals-dist build ../build_for_pip/code-prep && node node_modules/gulp/bin/gulp.js prebuild && cd node_modules/.bin && r_js.cmd -o ../../build.js && cd ../.. && node ./node_modules/gulp/bin/gulp.js moveStyles && cd node_modules/.bin && r_js.cmd -o ../../../build_for_pip/buildPip.js && cd ../.. && node ./node_modules/gulp/bin/gulp.js pipMoveStyles"
  },
...

You can follow the steps above to build for pip. For creating the pip artifact, from this directory do:

python3 setup.py prep_to_build npm_run_build sdist bdist_wheel

but then you can install from this build, without uploading to pypi servers, by simply :

  1. unpacking the tarball found in the dist directory
  2. switching to the unpack directory
  3. finally: pip install .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterterminals-0.1.2.tar.gz (69.2 kB view details)

Uploaded Source

Built Distribution

jupyterterminals-0.1.2-py3-none-any.whl (70.2 kB view details)

Uploaded Python 3

File details

Details for the file jupyterterminals-0.1.2.tar.gz.

File metadata

  • Download URL: jupyterterminals-0.1.2.tar.gz
  • Upload date:
  • Size: 69.2 kB
  • Tags: Source
  • Uploaded using 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.1 CPython/3.6.8

File hashes

Hashes for jupyterterminals-0.1.2.tar.gz
Algorithm Hash digest
SHA256 db14c877b402f258fd968d43fa10b1c8d50dd7871333035ebe7134255db88e12
MD5 0dfc2ee834cc88add8baba40ae090ec1
BLAKE2b-256 9b082d69f00c5cf32ef818a54b2e576c25a349f2a850ecf4f1ea701a41fe22ca

See more details on using hashes here.

File details

Details for the file jupyterterminals-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: jupyterterminals-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 70.2 kB
  • Tags: Python 3
  • Uploaded using 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.1 CPython/3.6.8

File hashes

Hashes for jupyterterminals-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f7b6e08870e20a306d310ae9dfd30146f1eab0e75c9b4de1894b0e101e616c31
MD5 56f7edb5b58aea06b1cd974f57f43663
BLAKE2b-256 7ddc5946411e361caff8e684919d5ed52b0155cb11041e8fc7cb1b4c9fcf6a7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page