![]() To also generate source maps for the JupyterLab core extensions, you can run the following command: jupyter lab build -minimize =Falseĭevelopment uninstall pip uninstall jupyterlab-plugin-playground 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 jlpm 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 # Link your development version of the extension with JupyterLab # Clone the repo to your local environment # Change directory to the jupyterlab-plugin-playground directory # Install package in development mode You will need NodeJS to build the extension package. For example, here is a user setting to encode a small plugin to run at startup: Since JSON strings cannot have multiple lines, you will need to encode any newlines in your plugin text directly as \n\ (the second backslash is to allow the string to continue on the next line). plugins is a list of strings of plugin text, like the examples above, that are loaded automatically when JupyterLab starts up.For example, you can point to a GitHub gist or a file you host on a local server that serves text files like the above examples. urls is a list of URLs that will be fetched and loaded as plugins automatically when JupyterLab starts up.Automatically loaded plugins can be configured in two ways: The Advanced Settings for the Plugin Playground enable you to configure plugins to load every time JupyterLab starts up. convert require() calls to ES6 default imports.This plugin will create a simple command My Super Cool Toggle in the command palette that can be toggled on and off. This extension provides a new command, Load Current File As Extension, available in the text editor.Īs an example, open the text editor by creating a new text file and paste this small JupyterLab plugin into it. ![]() ![]() Install this extension with pip: pip install jupyterlab-plugin-playground How are folks currently managing to install Voyager, given it’s not yet compatible with JupyterLab 1.1.A JupyterLab extension to write and load simple JupyterLab plugins inside JupyterLab. Originally, I was getting KeyError: but now (a few days later) I just see jupyter labextension install returned a non-zero code: 1. I can fix the sidebar problem by upgrading to 1.1.1, but then the Voyager installation fails. Rm -rf $CONDA_DIR/share/jupyter/lab/staging & \ RUN jupyter labextension install jupyterlab_voyager -no-build & \ For example, the following Docker file has a broken sidebar for me: # datascience-notebook image with JupyterLab 1.0.4ĪRG BASE_CONTAINER=jupyter/datascience-notebook:2ce7c06a61a1 I’m running into this issue when trying to install Voyager using Docker and JupyterLab 1.0.4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |