Skip to main content

Create Python Files from JupyterLab

Project description

jupyterlab-python-file

Binder PyPI conda-forge npm

Create Python Files from JupyterLab

screenshot

screenshot2

Prerequisites

  • JupyterLab 1.0+

Installation

For JupyterLab 3.x, the extension can be installed with pip:

pip install jupyterlab-python-file

Or with conda:

conda install -c conda-forge jupyterlab-python-file

# or with mamba
mamba install jupyterlab-python-file

For JupyterLab 1.x and 2.x:

jupyter labextension install jupyterlab-python-file

Development

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Clone the repo to your local environment
# Change directory to the jupyterlab-python-file directory

# create a new environment
conda create -n jupyterlab-python-file -c conda-forge python nodejs -y
conda activate jupyterlab-python-file

# install the JupyterLab pre-release
python -m pip install --pre jupyterlab

# Install package in development mode
pip install -e .

# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite

# Rebuild extension Typescript source after making changes
jlpm run build

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

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

jupyterlab-python-file-0.5.3.tar.gz (126.5 kB view details)

Uploaded Source

Built Distribution

jupyterlab_python_file-0.5.3-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab-python-file-0.5.3.tar.gz.

File metadata

  • Download URL: jupyterlab-python-file-0.5.3.tar.gz
  • Upload date:
  • Size: 126.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for jupyterlab-python-file-0.5.3.tar.gz
Algorithm Hash digest
SHA256 2c1b51eb88f5e9ef4ba953e39008e09b5acb7f771bcef805b7c764fdd1c8638b
MD5 80e06dc4ad5f0871f33792a32c0f2f03
BLAKE2b-256 39849272b5227f5d66471f957f4bfa7923678ab3be4f1703fcda48c25b95ad30

See more details on using hashes here.

File details

Details for the file jupyterlab_python_file-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: jupyterlab_python_file-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for jupyterlab_python_file-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 207b01ee3c0f13733597179690df1c0c35106b56431a8cb0e6fc3224c1dd3855
MD5 1fa29c623bfc9694ccbd6011ce966c55
BLAKE2b-256 388cd6ff30785ef37468340e3456b3f0700303b177914a23ffef36cd88aad65e

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