![]() ![]() 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 A JupyterLab extension to write and load simple JupyterLab plugins inside JupyterLab. ![]()
0 Comments
Leave a Reply. |