Lots of developer tools require access to programatic reading and writing of user code, as well as variable state. This is an example JupyterLab Extension that provides simple code demonstrating how to programatically reading and writing notebook user code, as well as accessing variable state and type information in the user's programming environment.
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
# Move to codegen directory
# Install dependencies
jlpm
# Build Typescript source
jlpm build
# Link your development version of the extension with JupyterLab
jupyter labextension install .
# Rebuild Typescript source after making changes
jlpm build
# Rebuild JupyterLab after making any changes
jupyter lab build