A JupyterLab extension for Logtalk syntax highlighting.
Project description
JupyterLab Logtalk CodeMirror Extension
A JupyterLab 4.x extension providing a Logtalk CodeMirror mode for syntax highlighting, automatic indentation, and code folding support. The extension also provides launcher and command palette entries for creating new Logtalk files.
See also the Jupyter kernel for Logtalk.
🙏 Sponsored by Permion and GitHub Sponsors.
Requirements
- JupyterLab >= 4.0.0
Install
The extension is provided as a Python package on the Python Package Index and can be installed with pip:
python3 -m pip install --upgrade jupyterlab-logtalk-codemirror-extension
Uninstall
python3 -m pip uninstall jupyterlab-logtalk-codemirror-extension
Contributing
Development install
After cloning the repository, install the extension in development mode:
cd jupyterlab-logtalk-codemirror-extension
python3 -m pip install -e .
jupyter labextension develop . --overwrite
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.
jlpm watch
jupyter lab
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.
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 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
Development uninstall
python3 -m pip uninstall jupyterlab_logtalk_codemirror_extension
In development mode, you will also need to remove the symlink created by jupyter labextension develop
command. To find its location, you can run jupyter labextension list to figure out where the labextensions
folder is located. Then you can remove the symlink named jupyterlab_logtalk_codemirror_extension within that folder.
Publishing
Make sure that both the package.json and pyproject.toml file report the same version. In the twine command below, replace VERSION with the actual version number (e.g., 1.0.0).
python3 -m build .
twine upload jupyterlab_logtalk_codemirror_extension-VERSION.tar.gz and jupyterlab_logtalk_codemirror_extension-VERSION-py3-none-any.whl
The second command above requires you to be logged in to the PyPI registry. For the Conda registry, an automatic build and pull request is triggered when a new version is published on PyPI.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterlab_logtalk_codemirror_extension-1.3.0.tar.gz.
File metadata
- Download URL: jupyterlab_logtalk_codemirror_extension-1.3.0.tar.gz
- Upload date:
- Size: 262.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba6e2f17ff74713b51581e6922221b8392cbccf872e99f8578ba97e78369479f
|
|
| MD5 |
d5b229e05dec8f32a6ab355bc1e22775
|
|
| BLAKE2b-256 |
c9f837a4216309132ca929b2bf79f269e0e4d1205cebdac74452abad4d913b8f
|
File details
Details for the file jupyterlab_logtalk_codemirror_extension-1.3.0-py3-none-any.whl.
File metadata
- Download URL: jupyterlab_logtalk_codemirror_extension-1.3.0-py3-none-any.whl
- Upload date:
- Size: 172.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c2efb959ff073a6fc56bcfb6520e230140f83533a07ef44b247af74d6b7515a
|
|
| MD5 |
54e354582d947f6fb441f6c22efe47ae
|
|
| BLAKE2b-256 |
4546ed33046901ce9ec1bb2faf844b8a9f385a033fba49d3eb7aa9806f616d4d
|