JupyterLab extension for Stata syntax highlighting similar to the Stata IDE's.
Project description
jupyterlab_stata_highlight2
JupyterLab extension for Stata syntax highlighting similar to the Stata IDE's.
Requirements
- JupyterLab >= 3.1
Install
pip install jupyterlab_stata_highlight2
Contributing
Development install
Note: You will need NodeJS to build the extension package.
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
# Change directory to the jupyterlab_stata_highlight2 directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm run build
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.
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
By default, the jlpm run 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:
jupyter lab build --minimize=False
Uninstall
pip uninstall jupyterlab_stata_highlight2
Updating the version
To update the version, install tbump and use it to bump the version. By default it will also create a tag.
pip install tbump
tbump <new-version>
Predecessor license notices
Extension boilerplate originated in Project Jupyter's https://github.com/jupyterlab/extension-cookiecutter-js Extension content forked from Kyle Barron's https://github.com/kylebarron/jupyterlab-stata-highlight Please note their respective licenses.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jupyterlab_stata_highlight2-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904b1c42cec19063cdf85103db7954c9c9d41b09736db6ae6cbe1670a15640c2 |
|
MD5 | 7a584093aee927d03f8168632b4b048c |
|
BLAKE2b-256 | 1ee0976cf5d2a56694eb32ff8d4740d6ce47edcbf72c7a2743e842732e626db7 |
Hashes for jupyterlab_stata_highlight2-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 579495c11caaac33bb3eec50faa0ed78833dd3f815c48b93c576ecfcff2e4131 |
|
MD5 | 483649004b545b9f2430684f9b97d1a9 |
|
BLAKE2b-256 | 7364954077bf0e3b025b1a434a374ea140def62a4604a3be6342bd93060b3895 |