将Jupyter笔记本与纯文本文件配对,使审查和代理编辑在Jupytext中保持可读性
Keep notebooks synchronized with .py or .md representations so version control, review, and refactoring can happen outside bulky notebook JSON.
Prerequisites
Python, JupyterLab or Jupyter Notebook
Installation
Use the upstream install or setup path that matches your environment:
- pip install jupytext
- conda install jupytext -c conda-forge
Requirements and caveats from upstream:
-
-
- A Python notebook encoded in the py:percent format has a .py extension and looks like this:
Basic usage or getting-started notes:
- or
- Then, restart your JupyterLab server, and make sure Jupytext is activated in Jupyter: .py and .md files have a Notebook icon, and you can open them as Notebooks with a right click in JupyterLab.
-
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/mwouts/jupytext/HEAD/README.md
Documentation
- https://jupytext.readthedocs.io/