JupyterLab 4及以上版本的MathJax排版提供者
项目描述
jupyterlab_mathjax2
需求
- JupyterLab >= 4.0.0
安装
要安装扩展,请执行
pip install jupyterlab_mathjax2
卸载
要删除扩展,请执行
pip uninstall jupyterlab_mathjax2
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab的固定版本的 yarn,它随JupyterLab一起安装。您可以使用 yarn
或 npm
替代下面的 jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_mathjax2 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 build
您可以在不同的终端中同时监视源目录并运行JupyterLab,以监视扩展源的更改并自动重新构建扩展。
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
在监视命令运行时,每次保存的更改都将立即在本地构建并可供正在运行的JupyterLab使用。刷新JupyterLab以在浏览器中加载更改(您可能需要等待几秒钟,直到扩展重新构建)。
默认情况下,jlpm build
命令为该扩展生成源映射,使其更容易使用浏览器开发者工具进行调试。要为JupyterLab核心扩展生成源映射,可以运行以下命令
jupyter lab build --minimize=False
开发卸载
pip uninstall jupyterlab_mathjax2
在开发模式下,您还需要删除由 jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以运行 jupyter labextension list
来确定 labextensions
文件夹的位置。然后您可以删除该文件夹内名为 @jupyterlab/mathjax2-extension
的符号链接。
打包扩展
请参阅 RELEASE
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源分布
jupyterlab_mathjax2-4.0.0.tar.gz (37.3 kB 查看哈希值)
构建分布
关闭
jupyterlab_mathjax2-4.0.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 1748fc09e18ef6f878670e400932dc3a08db012d97f4680c238a3a38f7af2461 |
|
MD5 | e9673352ac10685dc3c3a6acb0751cc4 |
|
BLAKE2b-256 | 96619a5c0fd7acc64a309d343c91b2665d404897f5877ea1868e3d9bcc1cdd8f |
关闭
jupyterlab_mathjax2-4.0.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c65c401ee5638e7cbf1223ba95aceed8b26a2a3e48fd1d585a10dd95b9327a8f |
|
MD5 | 4172e36b068af6a3f36c26a3f1946dc9 |
|
BLAKE2b-256 | 5246bb4cb93fb0642ed7800ddb9461daaee298d311ef0cf310acc2f71772d21b |