Skip to main content

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.

Metadata

Release files for jupyterlab-logtalk-codemirror-extension 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterlab-logtalk-codemirror-extension 1.3.0
File Size Uploaded
jupyterlab_logtalk_codemirror_extension-1.3.0.tar.gz 262.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-logtalk-codemirror-extension 1.3.0
File Interpreter ABI Platform
jupyterlab_logtalk_codemirror_extension-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 434.3 kB

Release files / jupyterlab_logtalk_codemirror_extension-1.3.0.tar.gz

Download URL jupyterlab_logtalk_codemirror_extension-1.3.0.tar.gz
Size 262.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ba6e2f17ff74713b51581e6922221b8392cbccf872e99f8578ba97e78369479f
BLAKE2b-256 checksum
How to use checksums
c9f837a4216309132ca929b2bf79f269e0e4d1205cebdac74452abad4d913b8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / jupyterlab_logtalk_codemirror_extension-1.3.0-py3-none-any.whl

Download URL jupyterlab_logtalk_codemirror_extension-1.3.0-py3-none-any.whl
Size 172.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c2efb959ff073a6fc56bcfb6520e230140f83533a07ef44b247af74d6b7515a
BLAKE2b-256 checksum
How to use checksums
4546ed33046901ce9ec1bb2faf844b8a9f385a033fba49d3eb7aa9806f616d4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page