跳转到主要内容

FreeCAD的JupyterCAD扩展。

项目描述

jupytercad_freecad

Github Actions Status JupyterLab扩展。

要求

  • JupyterLab >= 4.0.0

安装

要安装扩展,请执行

pip install jupytercad_freecad

卸载

要移除扩展,请执行

pip uninstall jupytercad_freecad

贡献

开发安装

注意:您需要NodeJS来构建扩展包。

jlpm命令是JupyterLab安装的yarn的固定版本。您可以使用下面的yarnnpm代替jlpm

# Clone the repo to your local environment
# Change directory to the jupytercad_freecad directory
# Install package in development mode
pip install -e "."
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Server extension must be manually installed in develop mode
jupyter server extension enable jupytercad_freecad
# 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 jupytercad_freecad

在开发模式下,您还需要删除由jupyter labextension develop命令创建的符号链接。要找到其位置,可以运行jupyter labextension list以确定labextensions文件夹的位置。然后您可以在该文件夹中删除名为@jupytercad/jupytercad_freecad的符号链接。

打包扩展

RELEASE

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

jupytercad_freecad-2.0.0.tar.gz (833.2 kB 查看哈希值)

上传时间 源代码

构建分布

jupytercad_freecad-2.0.0-py3-none-any.whl (28.5 kB 查看哈希值)

上传时间 Python 3

支持者