Skip to main content

Create Python Files from JupyterLab

Project description

jupyterlab-python-file

Binder

Create Python Files from JupyterLab

screenshot

screenshot2

Prerequisites

  • JupyterLab 1.0+

Installation

Starting from JupyterLab 3.0, the extension can be installed with pip:

pip 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.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

jupyterlab_python_file-0.5.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyterlab-python-file-0.5.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for jupyterlab-python-file-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f0ba49cb75b105d5f9e790e0cae5361bc16bb0efae75abf904a8c911861506a6
MD5 f430e296cc3102ad5c8e0911f1bbb0e7
BLAKE2b-256 aab65e8d5fe1ec4808b3506029f422fccf8b748856d5bab45fb1badc7d0ce338

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyterlab_python_file-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for jupyterlab_python_file-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4048738d6d77acc809200f87d52c2f5c2bf4ee973e0cd1acfe1583f260ca4c1
MD5 7e9b71e4a7f9b8406d85a840c1ea32a9
BLAKE2b-256 286963228d43aa2070adf91008615423e2c773c1410a226a57c95a3662d1c134

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