%global _empty_manifest_terminate_build 0 Name: python-jupytext Version: 1.14.5 Release: 1 Summary: Jupyter notebooks as Markdown documents, Julia, Python or R scripts License: MIT URL: https://github.com/mwouts/jupytext Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0a/7f/c495114a3814df1d9d41855e939a6a0cb133a1a11a34a22bde934d115ff4/jupytext-1.14.5.tar.gz BuildArch: noarch Requires: python3-nbformat Requires: python3-pyyaml Requires: python3-toml Requires: python3-markdown-it-py Requires: python3-mdit-py-plugins Requires: python3-sphinx-gallery Requires: python3-toml %description ![](https://raw.githubusercontent.com/mwouts/jupytext/main/docs/logo_large.png) ![CI](https://github.com/mwouts/jupytext/workflows/CI/badge.svg) [![Documentation Status](https://readthedocs.org/projects/jupytext/badge/?version=latest)](https://jupytext.readthedocs.io/en/latest/?badge=latest) [![codecov.io](https://codecov.io/github/mwouts/jupytext/coverage.svg?branch=main)](https://codecov.io/gh/mwouts/jupytext/branch/main) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/mwouts/jupytext.svg)](https://lgtm.com/projects/g/mwouts/jupytext/context:python) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![GitHub language count](https://img.shields.io/github/languages/count/mwouts/jupytext)](https://jupytext.readthedocs.io/en/latest/languages.html) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/jupytext.svg)](https://anaconda.org/conda-forge/jupytext) [![Pypi](https://img.shields.io/pypi/v/jupytext.svg)](https://pypi.python.org/pypi/jupytext) [![pyversions](https://img.shields.io/pypi/pyversions/jupytext.svg)](https://pypi.python.org/pypi/jupytext) [![Binder:notebook](https://img.shields.io/badge/binder-notebook-0172B2.svg)](https://mybinder.org/v2/gh/mwouts/jupytext/main?filepath=demo) [![Binder:lab](https://img.shields.io/badge/binder-jupyterlab-0172B2.svg)](https://mybinder.org/v2/gh/mwouts/jupytext/main?urlpath=lab/tree/demo/get_started.ipynb) [![launch - renku](https://renkulab.io/renku-badge.svg)](https://renkulab.io/projects/best-practices/jupytext/sessions/new?autostart=1) [![](https://img.shields.io/badge/YouTube-JupyterCon%202020-red.svg)](https://www.youtube.com/watch?v=SDYdeVfMh48) Have you always wished Jupyter notebooks were plain text documents? Wished you could edit them in your favorite IDE? And get clear and meaningful diffs when doing version control? Then... Jupytext may well be the tool you're looking for! Jupytext is a plugin for Jupyter that can save Jupyter notebooks as either - Markdown files (or [MyST Markdown](https://jupytext.readthedocs.io/en/latest/formats.html#MyST-Markdown) files, or [R Markdown](https://jupytext.readthedocs.io/en/latest/formats.html#R-Markdown) or [Quarto](https://jupytext.readthedocs.io/en/latest/formats.html#Quarto) text notebooks) - Scripts in [many languages](https://jupytext.readthedocs.io/en/latest/languages.html). ## Use cases Common [use cases](https://jupytext.readthedocs.io/en/latest/examples.html) for Jupytext are: - Doing version control on Jupyter Notebooks - Editing, merging or refactoring notebooks in your favorite text editor - Applying Q&A checks on notebooks. ## Install You can install Jupytext with - `pip install jupytext` - or `conda install jupytext -c conda-forge`. Please note that Jupytext includes an extension for Jupyter Lab. In the latest version of Jupytext, this extension is compatible with Jupyter Lab >= 3.0 only. If you use Jupyter Lab 2.x, please either stay with Jupytext 1.8.2, or install, on top of the latest pip or conda version of Jupytext, a version of the extension that is compatible with Jupyter Lab 2.x: ``` jupyter labextension install jupyterlab-jupytext@1.2.2 # For Jupyter Lab 2.x ``` Then, restart your Jupyter server (for more installation details, see the [install section](https://jupytext.readthedocs.io/en/latest/install.html) in the documentation). When Jupytext is installed, `.py` and `.md` files have a notebook icon. And you can really open and run these files as notebooks ## Paired notebooks The most convenient way to use Jupytext is probably through [paired notebooks](https://jupytext.readthedocs.io/en/latest/paired-notebooks.html). To pair a given `.ipynb` or text notebook to an additional notebook format, use either When you save a paired notebook in Jupyter, both the `.ipynb` file and the text version are updated on disk. When a paired notebook is opened or _reloaded_ in Jupyter, the input cells are loaded from the text file, and combined with the output cells from the `.ipynb` file. You can edit the text representation of the notebook in your favorite editor, and get the changes back in Jupyter by simply _reloading_ the notebook (Ctrl+R in Jupyter Notebook, "reload notebook" in Jupyter Lab). And the changes are propagated to the `.ipynb` file when you _save_ the notebook. Alternatively, you can synchronise the two representations by running `jupytext --sync notebook.ipynb` at the command line. ## Which text format? Jupytext implements many text [formats](https://jupytext.readthedocs.io/en/latest/formats.html) for Jupyter Notebooks. If your notebook is mostly made of code, you will probably prefer to save it as a script: - Use the [percent format](https://jupytext.readthedocs.io/en/latest/formats.html#The-percent-format), a format with explicit cell delimiters (`# %%`), supported by many IDE (Spyder, Hydrogen, VS Code, PyCharm and PTVS) - Or use the [light format](https://jupytext.readthedocs.io/en/latest/formats.html#The-light-format), if you prefer to see fewer cell markers. If your notebook contains more text than code, if you are writing a documentation or a book, you probably want to save your notebook as a Markdown document - Use the [Jupytext Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#Jupytext-Markdown) if you wish to render your notebook as a `.md` file (without its outputs) on GitHub - Use the [MyST Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#MyST-Markdown), a markdown flavor that “implements the best parts of reStructuredText”, if you wish to render your notebooks using Sphinx or [Jupyter Book](https://jupyterbook.org). - Use the [R Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#R-Markdown) or the [Quarto format](https://jupytext.readthedocs.io/en/latest/formats.html#Quarto) if you want to open your Jupyter Notebooks in RStudio. ## More resources? If you're new to Jupytext, you may want to start with the [FAQ](https://jupytext.readthedocs.io/en/latest/faq.html) or with the [Tutorials](https://jupytext.readthedocs.io/en/latest/tutorials.html), or with this short introduction to Jupytext: [![](https://img.shields.io/badge/YouTube-JupyterCon%202020-red.svg)](https://www.youtube.com/watch?v=SDYdeVfMh48). %package -n python3-jupytext Summary: Jupyter notebooks as Markdown documents, Julia, Python or R scripts Provides: python-jupytext BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-jupytext ![](https://raw.githubusercontent.com/mwouts/jupytext/main/docs/logo_large.png) ![CI](https://github.com/mwouts/jupytext/workflows/CI/badge.svg) [![Documentation Status](https://readthedocs.org/projects/jupytext/badge/?version=latest)](https://jupytext.readthedocs.io/en/latest/?badge=latest) [![codecov.io](https://codecov.io/github/mwouts/jupytext/coverage.svg?branch=main)](https://codecov.io/gh/mwouts/jupytext/branch/main) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/mwouts/jupytext.svg)](https://lgtm.com/projects/g/mwouts/jupytext/context:python) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![GitHub language count](https://img.shields.io/github/languages/count/mwouts/jupytext)](https://jupytext.readthedocs.io/en/latest/languages.html) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/jupytext.svg)](https://anaconda.org/conda-forge/jupytext) [![Pypi](https://img.shields.io/pypi/v/jupytext.svg)](https://pypi.python.org/pypi/jupytext) [![pyversions](https://img.shields.io/pypi/pyversions/jupytext.svg)](https://pypi.python.org/pypi/jupytext) [![Binder:notebook](https://img.shields.io/badge/binder-notebook-0172B2.svg)](https://mybinder.org/v2/gh/mwouts/jupytext/main?filepath=demo) [![Binder:lab](https://img.shields.io/badge/binder-jupyterlab-0172B2.svg)](https://mybinder.org/v2/gh/mwouts/jupytext/main?urlpath=lab/tree/demo/get_started.ipynb) [![launch - renku](https://renkulab.io/renku-badge.svg)](https://renkulab.io/projects/best-practices/jupytext/sessions/new?autostart=1) [![](https://img.shields.io/badge/YouTube-JupyterCon%202020-red.svg)](https://www.youtube.com/watch?v=SDYdeVfMh48) Have you always wished Jupyter notebooks were plain text documents? Wished you could edit them in your favorite IDE? And get clear and meaningful diffs when doing version control? Then... Jupytext may well be the tool you're looking for! Jupytext is a plugin for Jupyter that can save Jupyter notebooks as either - Markdown files (or [MyST Markdown](https://jupytext.readthedocs.io/en/latest/formats.html#MyST-Markdown) files, or [R Markdown](https://jupytext.readthedocs.io/en/latest/formats.html#R-Markdown) or [Quarto](https://jupytext.readthedocs.io/en/latest/formats.html#Quarto) text notebooks) - Scripts in [many languages](https://jupytext.readthedocs.io/en/latest/languages.html). ## Use cases Common [use cases](https://jupytext.readthedocs.io/en/latest/examples.html) for Jupytext are: - Doing version control on Jupyter Notebooks - Editing, merging or refactoring notebooks in your favorite text editor - Applying Q&A checks on notebooks. ## Install You can install Jupytext with - `pip install jupytext` - or `conda install jupytext -c conda-forge`. Please note that Jupytext includes an extension for Jupyter Lab. In the latest version of Jupytext, this extension is compatible with Jupyter Lab >= 3.0 only. If you use Jupyter Lab 2.x, please either stay with Jupytext 1.8.2, or install, on top of the latest pip or conda version of Jupytext, a version of the extension that is compatible with Jupyter Lab 2.x: ``` jupyter labextension install jupyterlab-jupytext@1.2.2 # For Jupyter Lab 2.x ``` Then, restart your Jupyter server (for more installation details, see the [install section](https://jupytext.readthedocs.io/en/latest/install.html) in the documentation). When Jupytext is installed, `.py` and `.md` files have a notebook icon. And you can really open and run these files as notebooks ## Paired notebooks The most convenient way to use Jupytext is probably through [paired notebooks](https://jupytext.readthedocs.io/en/latest/paired-notebooks.html). To pair a given `.ipynb` or text notebook to an additional notebook format, use either When you save a paired notebook in Jupyter, both the `.ipynb` file and the text version are updated on disk. When a paired notebook is opened or _reloaded_ in Jupyter, the input cells are loaded from the text file, and combined with the output cells from the `.ipynb` file. You can edit the text representation of the notebook in your favorite editor, and get the changes back in Jupyter by simply _reloading_ the notebook (Ctrl+R in Jupyter Notebook, "reload notebook" in Jupyter Lab). And the changes are propagated to the `.ipynb` file when you _save_ the notebook. Alternatively, you can synchronise the two representations by running `jupytext --sync notebook.ipynb` at the command line. ## Which text format? Jupytext implements many text [formats](https://jupytext.readthedocs.io/en/latest/formats.html) for Jupyter Notebooks. If your notebook is mostly made of code, you will probably prefer to save it as a script: - Use the [percent format](https://jupytext.readthedocs.io/en/latest/formats.html#The-percent-format), a format with explicit cell delimiters (`# %%`), supported by many IDE (Spyder, Hydrogen, VS Code, PyCharm and PTVS) - Or use the [light format](https://jupytext.readthedocs.io/en/latest/formats.html#The-light-format), if you prefer to see fewer cell markers. If your notebook contains more text than code, if you are writing a documentation or a book, you probably want to save your notebook as a Markdown document - Use the [Jupytext Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#Jupytext-Markdown) if you wish to render your notebook as a `.md` file (without its outputs) on GitHub - Use the [MyST Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#MyST-Markdown), a markdown flavor that “implements the best parts of reStructuredText”, if you wish to render your notebooks using Sphinx or [Jupyter Book](https://jupyterbook.org). - Use the [R Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#R-Markdown) or the [Quarto format](https://jupytext.readthedocs.io/en/latest/formats.html#Quarto) if you want to open your Jupyter Notebooks in RStudio. ## More resources? If you're new to Jupytext, you may want to start with the [FAQ](https://jupytext.readthedocs.io/en/latest/faq.html) or with the [Tutorials](https://jupytext.readthedocs.io/en/latest/tutorials.html), or with this short introduction to Jupytext: [![](https://img.shields.io/badge/YouTube-JupyterCon%202020-red.svg)](https://www.youtube.com/watch?v=SDYdeVfMh48). %package help Summary: Development documents and examples for jupytext Provides: python3-jupytext-doc %description help ![](https://raw.githubusercontent.com/mwouts/jupytext/main/docs/logo_large.png) ![CI](https://github.com/mwouts/jupytext/workflows/CI/badge.svg) [![Documentation Status](https://readthedocs.org/projects/jupytext/badge/?version=latest)](https://jupytext.readthedocs.io/en/latest/?badge=latest) [![codecov.io](https://codecov.io/github/mwouts/jupytext/coverage.svg?branch=main)](https://codecov.io/gh/mwouts/jupytext/branch/main) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/mwouts/jupytext.svg)](https://lgtm.com/projects/g/mwouts/jupytext/context:python) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![GitHub language count](https://img.shields.io/github/languages/count/mwouts/jupytext)](https://jupytext.readthedocs.io/en/latest/languages.html) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/jupytext.svg)](https://anaconda.org/conda-forge/jupytext) [![Pypi](https://img.shields.io/pypi/v/jupytext.svg)](https://pypi.python.org/pypi/jupytext) [![pyversions](https://img.shields.io/pypi/pyversions/jupytext.svg)](https://pypi.python.org/pypi/jupytext) [![Binder:notebook](https://img.shields.io/badge/binder-notebook-0172B2.svg)](https://mybinder.org/v2/gh/mwouts/jupytext/main?filepath=demo) [![Binder:lab](https://img.shields.io/badge/binder-jupyterlab-0172B2.svg)](https://mybinder.org/v2/gh/mwouts/jupytext/main?urlpath=lab/tree/demo/get_started.ipynb) [![launch - renku](https://renkulab.io/renku-badge.svg)](https://renkulab.io/projects/best-practices/jupytext/sessions/new?autostart=1) [![](https://img.shields.io/badge/YouTube-JupyterCon%202020-red.svg)](https://www.youtube.com/watch?v=SDYdeVfMh48) Have you always wished Jupyter notebooks were plain text documents? Wished you could edit them in your favorite IDE? And get clear and meaningful diffs when doing version control? Then... Jupytext may well be the tool you're looking for! Jupytext is a plugin for Jupyter that can save Jupyter notebooks as either - Markdown files (or [MyST Markdown](https://jupytext.readthedocs.io/en/latest/formats.html#MyST-Markdown) files, or [R Markdown](https://jupytext.readthedocs.io/en/latest/formats.html#R-Markdown) or [Quarto](https://jupytext.readthedocs.io/en/latest/formats.html#Quarto) text notebooks) - Scripts in [many languages](https://jupytext.readthedocs.io/en/latest/languages.html). ## Use cases Common [use cases](https://jupytext.readthedocs.io/en/latest/examples.html) for Jupytext are: - Doing version control on Jupyter Notebooks - Editing, merging or refactoring notebooks in your favorite text editor - Applying Q&A checks on notebooks. ## Install You can install Jupytext with - `pip install jupytext` - or `conda install jupytext -c conda-forge`. Please note that Jupytext includes an extension for Jupyter Lab. In the latest version of Jupytext, this extension is compatible with Jupyter Lab >= 3.0 only. If you use Jupyter Lab 2.x, please either stay with Jupytext 1.8.2, or install, on top of the latest pip or conda version of Jupytext, a version of the extension that is compatible with Jupyter Lab 2.x: ``` jupyter labextension install jupyterlab-jupytext@1.2.2 # For Jupyter Lab 2.x ``` Then, restart your Jupyter server (for more installation details, see the [install section](https://jupytext.readthedocs.io/en/latest/install.html) in the documentation). When Jupytext is installed, `.py` and `.md` files have a notebook icon. And you can really open and run these files as notebooks ## Paired notebooks The most convenient way to use Jupytext is probably through [paired notebooks](https://jupytext.readthedocs.io/en/latest/paired-notebooks.html). To pair a given `.ipynb` or text notebook to an additional notebook format, use either When you save a paired notebook in Jupyter, both the `.ipynb` file and the text version are updated on disk. When a paired notebook is opened or _reloaded_ in Jupyter, the input cells are loaded from the text file, and combined with the output cells from the `.ipynb` file. You can edit the text representation of the notebook in your favorite editor, and get the changes back in Jupyter by simply _reloading_ the notebook (Ctrl+R in Jupyter Notebook, "reload notebook" in Jupyter Lab). And the changes are propagated to the `.ipynb` file when you _save_ the notebook. Alternatively, you can synchronise the two representations by running `jupytext --sync notebook.ipynb` at the command line. ## Which text format? Jupytext implements many text [formats](https://jupytext.readthedocs.io/en/latest/formats.html) for Jupyter Notebooks. If your notebook is mostly made of code, you will probably prefer to save it as a script: - Use the [percent format](https://jupytext.readthedocs.io/en/latest/formats.html#The-percent-format), a format with explicit cell delimiters (`# %%`), supported by many IDE (Spyder, Hydrogen, VS Code, PyCharm and PTVS) - Or use the [light format](https://jupytext.readthedocs.io/en/latest/formats.html#The-light-format), if you prefer to see fewer cell markers. If your notebook contains more text than code, if you are writing a documentation or a book, you probably want to save your notebook as a Markdown document - Use the [Jupytext Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#Jupytext-Markdown) if you wish to render your notebook as a `.md` file (without its outputs) on GitHub - Use the [MyST Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#MyST-Markdown), a markdown flavor that “implements the best parts of reStructuredText”, if you wish to render your notebooks using Sphinx or [Jupyter Book](https://jupyterbook.org). - Use the [R Markdown format](https://jupytext.readthedocs.io/en/latest/formats.html#R-Markdown) or the [Quarto format](https://jupytext.readthedocs.io/en/latest/formats.html#Quarto) if you want to open your Jupyter Notebooks in RStudio. ## More resources? If you're new to Jupytext, you may want to start with the [FAQ](https://jupytext.readthedocs.io/en/latest/faq.html) or with the [Tutorials](https://jupytext.readthedocs.io/en/latest/tutorials.html), or with this short introduction to Jupytext: [![](https://img.shields.io/badge/YouTube-JupyterCon%202020-red.svg)](https://www.youtube.com/watch?v=SDYdeVfMh48). %prep %autosetup -n jupytext-1.14.5 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-jupytext -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon Apr 10 2023 Python_Bot - 1.14.5-1 - Package Spec generated