![]() ![]() 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 # 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 (top level of repo) # 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. Iterating on the mount server, from inside a pachyderm checkout: CGO_ENABLED=0 make installĭocker cp /home/luke/gocode/bin/pachctl jupyterlab_pachyderm_frontend_dev:/usr/local/bin/pachctlĭocker exec -ti jupyterlab_pachyderm_frontend_dev pkill -f pachctl Note: Once run above, you can start the dev container again in future sessions using docker start Open another bash inside the same container: docker exec -it bash Jupyter server extension enable jupyterlab_pachyderm # Server extension must be manually installed in develop mode, for example Install the project in editable mode, and start JupyterLab pip install -e. On macOS you can specify grpc://:30650 to get the same effect. If you are on macOS, you will want to remove -net=host as it is not supported. If you are running the frontend container on Linux, and want to be able to talk to pachd in minikube on grpc://localhost:30650, use -net=host at the start of the the docker run command as shown above. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |