Jupyterlab extension for JupySQL
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install jupysql-pluginjupysql-plugin
[!TIP] Deploy AI apps for free on Ploomber Cloud!
[!NOTE] Code in the
mainbranch is compatible with JupyterLab 4 (0.4.xor higher releases), thejupyterlab3branch contains code compatible with JupyterLab 3 (0.3.xreleases). We'll keep backporting some features and making0.3.xreleases for some time, but we highly recommend upgrading to JupyterLab 4 for a better experience.
Install
pip install jupysql-plugin
Contributing
Development install
conda create --name jupysql-plugin python=3.11 --channel conda-forge --yes
conda activate jupysql-plugin
conda install nodejs=20 --channel conda-forge --yes
pip install -r requirements.txt
pip install -r requirements.dev.txt
jlpm install
Note: pkgmt format can be used to format and lint Python files before committing code.
To format JavaScript and TypeScript files, use yarn run eslint. To lint without formatting,
use yarn run eslint:check
# Note: this command will take some time the first time as it has to compile the
# frontend code. If the command fails, see the "troubleshooting setup" section below
pip install -e "."
# upon installation, both the frontend and backend extensions must be activated
# automatically, you can verify it by ensuring jupysql-plugin appears here:
jupyter labextension list # frontend extension
jupyter server extension list # backend extension
# if they don't appear, you can activate them manually, but this means that
# the setup is incorrect! see pyproject.toml, under
# tool.hatch.build.targets.wheel.shared-data, and fix any issues
# activate manually
jupyter server extension enable jupysql_plugin
jupyter labextension enable jupysql_plugin
jupyter labextension develop . --overwrite
# NOTE: the two previous commands will fail if there are missing dependencies
# rebuild extension Typescript
# important: we had to set skipLibCheck: true
# https://discourse.jupyter.org/t/struggling-with-extensions-and-dependencies-versions/19550
jlpm build
To watch for changes and reload:
# in one terminal
jlpm watch
# another terminal
jupyter lab
Refresh JupyterLab to load the change in your browser.
By default, the jlpm build command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command: