
#Install jupyterlab using docker install#
To install the extension, execute: pip install jupyterlab_pachyderm Navigate to the URL that's printed out by the docker container, then change tree to lab in your browser's address bar. ĭocker run -ti -p 8888:8888 pachyderm/notebooks-user:dev Python -m pip install -r ci-requirements.txtīuild docker image: export PACHCTL_VERSION=aaa7434c714fab6130c3982ebdaa8f279bd850c2 # or whichever version you wantĭocker build -build-arg PACHCTL_VERSION=$PACHCTL_VERSION -t pachyderm/notebooks-user:dev. Useful if iterating on the Dockerfile locally or iterating on changes to a version of mount-server.Ĭreate & activate venv: python3 -m venv venvīuild dist directory: python -m pip install -upgrade pip Then you can remove the symlink named jupyterlab-pachyderm within that folder. To find its location, you can run jupyter labextension list to figure out where the labextensionsįolder is located. In development mode, you will also need to remove the symlink created by jupyter labextension developĬommand. Jupyter server extension disable jupyterlab_pachyderm To also generate source maps for the JupyterLab core extensions, you can run the following command: jupyter lab build -minimize =Falseĭevelopment uninstall # Server extension must be manually disabled in develop mode Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).īy default, the npm run build command generates the source maps for this extension to make it easier to debug using the browser dev tools. With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. # Watch the source directory in one terminal, automatically rebuilding when needed 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. # Rebuild extension Typescript source after making changes Jupyter server extension enable jupyterlab_pachyderm # Server extension must be manually installed in develop mode # Link your development version of the extension with JupyterLab # Clone the repo to your local environment # Change directory to the jupyterlab_pachyderm directory # Make sure you are using a virtual environment # Install package in development mode Note: You will need NodeJS to build the extension package.


When you are done using the environment you can close your shell or deactivate the environment: A simple guid to set up a virtual environment is as follows: When developing in python, it is good practice to set up a virtual environment.

This extension is composed of a Python package named jupyterlab_pachydermįor the server extension and a NPM package named jupyterlab-pachyderm A JupyterLab extension for integrations with Pachyderm.
