从JupyterLab创建Python文件

jupyterlab-python-file的Python项目详细描述


jupyterlab python文件

BinderPyPIconda-forgenpm

从JupyterLab创建Python文件

screenshot

screenshot2

先决条件

  • JupyterLab 1.0+

安装

对于JupyterLab 3.x,可以使用pip安装扩展:

pip install jupyterlab-python-file

或使用conda

^{pr2}$

对于JupyterLab 1.x和2.x:

jupyter labextension install jupyterlab-python-file

发展

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

jlpm命令是JupyterLab的pinned版本 yarn与JupyterLab一起安装。你可以用 yarnnpm代替下面的jlpm。在

# Clone the repo to your local environment# Change directory to the jupyterlab-python-file directory# create a new environment
conda create -n jupyterlab-python-file -c conda-forge python nodejs -y
conda activate jupyterlab-python-file

# install the JupyterLab pre-release
python -m pip install --pre jupyterlab

# 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

您可以监视源目录,并在不同的终端上同时运行JupyterLab,以监视扩展源代码中的更改并自动重建扩展。在

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab

运行watch命令后,每个保存的更改都将立即在本地生成,并在运行的JupyterLab中可用。刷新JupyterLab以在浏览器中加载更改(可能需要等待几秒钟才能重建扩展)。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
spring引导服务器忽略java上载请求   java多个驼峰路由会导致大量线程吗?   java 安卓单签入回收器gridLayout管理器   Java中指向类的不同实例的对象数组   java的启动/停止和打开/关闭等分组功能是否违反了单一责任原则?   java hibernate组件映射与自定义值类型   java如何使用不同的JDK在Jenkins作业中使用JDK8   java从匹配器获取字符串的特定部分   java通过在Spark数据框内的数组列中映射来创建新列   servlet的java Tomcat配置   java多个活动不在一个应用程序安卓 studio中   javajsf:view beforePhase在我离开页面时多次触发   javascript如何使用“java脚本”进行加密,使用和“java”进行解密   java My App不是从URL ASPX读取简单的JSON   java在RESTish web服务中应用DDD原则