jupyter-notepad v0.0.2
Jupyter React Widget Template
This is a basic repository setup for a React-based jupyter widget, based on the tools I like to use at the moment. There's a lot required to get this all working and there aren't a lot of good references out there, so I made this repo as a reference for myself that I can copy when creating new Jupyter widget packages.
(See the lmk README for more info, all of this info originated from there)
Set up
Create virtual environment:
python -m venv venvInstall dependencies with
pnpm installInstall the package with `pip install -e '.dev'
You should be able to run
jupyter laband run the following to see the widget:
from jupyter_notepad.widget import Widget
w = Widget()
wEnable extension:
Make sure you've installed or run pnpm build:prod first.
- Jupyter notebook 5.2 and earlier:
jupyter nbextension install --sys-prefix --symlink --overwrite --py lmk
jupyter nbextension enable --sys-prefix --py lmk- Jupyterlab:
jupyter labextension develop --overwrite .Watch (dev mode)
pnpm watchWhen this is running, if you make changes to the plugin code reloading the page should be sufficient to see changes.
Linting & formatting
pnpm checkBuild python wheel
pnpm build:python- TODO: clean up JS dependencies
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago