Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
MIT License
Bot releases are hidden (Show)
Published by mwouts over 4 years ago
Added
notebooks///ipynb,scripts///py:percent
if you want to replicate the arborescence of notebooks under notebooks
in a folder named scripts
(#424)pip
and conda
environments, on Linux, Mac OS and Windows, using Github actions (#487)pre-commit
, black
and flake8
(#483)--set-kernel
, --set-formats
, or both (#485)jupytext --check
commands like "pytest {}"
on Windows (#475)Fixed
jupytext --execute
tests when the warning Timeout waiting for IOPub output occurs, which is the case intermittently on Windows (#489)Published by mwouts over 4 years ago
Added
Changed
.ipynb
file are matched with the input cells from the text file with less strict rules. In this version, a search and replace on the text file will not remove the outputs any more (#464).myst-parser
to version ~0.8
) (#473)os.path.samefile
when searching for the kernel that corresponds to the current environment (--set-kernel -
)Fixed
--opt comment_magics=false
. In addition, most of the jupytext
commands in using-cli.md
are now tested! (#465)jupytext.read
and jupytext.write
now give more meaningful errors when the format information is incorrect (#462)Published by mwouts over 4 years ago
Added
md:myst
), developed by the ExecutableBookProject team. Read more about the MyST Markdown format in the documentation. And many thanks to Chris Sewell for contributing the actual implementation! (#447 #456 #458)Fixed
jupytext --pipe cmd
, the output of cmd
should not appear in the terminal (#432)Published by mwouts over 4 years ago
Changed
jupyter labextension install [email protected]
.Fixed
jupytext --pipe
or jupytext --check
(#432)Published by mwouts over 4 years ago
Fixed
jupytext --set-formats
when using formats with prefix and/or suffix (#450)Published by mwouts over 4 years ago
Added
Fixed
jupytext --to script *.ipynb
now computes the script extension for each notebook (#428)jupytext --help
(#426, #433)Published by mwouts over 4 years ago
Added
jupytext_version
if you wish (#416).Fixed
jupytext --test
on text files are ignored (#414).Published by mwouts almost 5 years ago
Fixed
--pre-commit
mode now ignores non-notebook files in the index (#338).nbformat_minor
is taken from the notebook with outputs when inputs and outputs are merged.Published by mwouts almost 5 years ago
Added
nomarker
format in the Jupyter Notebook and JupyterLab extensions (#397)Changed
normarker
format replaces the one previously named bare
.Fixed
cd
to the list of magic commands.--set-formats
is being used (fixes #399).Published by mwouts almost 5 years ago
See also What's new in Jupytext 1.3?
Added
.md
and .py
is now supported. Input cells are loaded from the most recent text representation (#290)<!-- #raw -->
and <!-- #endraw -->
) in Markdown files (#321)<!-- #region -->
, <!-- #markdown -->
or <!-- #md -->
(#344).noeval
attribute are inactive in Jupyter (#347)py:percent
format. And Markdown cells can start with just # %% [md]
(#305)# + [markdown]
rather than the previous cell_type
metadata to identify markdown cells with metadata (#356)# + [markdown]
can use triple quotes (#356)float?
are classified as magics, and thus commented in Python scripts (#297)key=value
(the new default) or in JSON. An automatic option cell_metadata_json
should help minimize the impact on existing files (#344)jupytext notebook.py --to ipynb
updates the timestamp of notebook.py
so that the paired notebook still works in Jupyter (#335, #254)jupytext --check pytest notebook.ipynb
can be used to run test functions in a notebook (#286)jupytext --check
and jupytext --pipe
can run commands that only operate on files: when {}
is found in the text of the command, jupytext
saves the text representation of the notebook in a temp file, and replaces {}
with the name of that file before executing the command. (#286)Changed
CHANGELOG.md
rather than HISTORY.rst
Fixed
cat = x
are not magic commands, so they are not commented any more (#339)"cat"
being converted to a markdown cell) in the py:light
format (#339)jupytext --test textfile.ext
now really compares the text file to its round trip (rather than the corresponding notebook) (#339)%%python3
cell magic are now preserved in a round trip through the Markdown format (#365)jupytext --execute
runs the notebook in its folder (#382)#R_CODE#
(#383)Published by mwouts almost 5 years ago
Read a more user friendly version here!
Added
.md
and .py
is now supported. Input cells are loaded from the most recent text representation (#290)<!-- #raw -->
and <!-- #endraw -->
) in Markdown files (#321)<!-- #region -->
, <!-- #markdown -->
or <!-- #md -->
(#344).noeval
attribute are inactive in Jupyter (#347)py:percent
format. And Markdown cells can start with just # %% [md]
(#305)# + [markdown]
rather than the previous cell_type
metadata to identify markdown cells with metadata (#356)# + [markdown]
can use triple quotes (#356)float?
are classified as magics, and thus commented in Python scripts (#297)key=value
(the new default) or in JSON. An automatic option cell_metadata_json
should help minimize the impact on existing files (#344)jupytext notebook.py --to ipynb
updates the timestamp of notebook.py
so that the paired notebook still works in Jupyter (#335, #254)jupytext --check pytest notebook.ipynb
can be used to run test functions in a notebook (#286)jupytext --check
and jupytext --pipe
can run commands that only operate on files: when {}
is found in the text of the command, jupytext
saves the text representation of the notebook in a temp file, and replaces {}
with the name of that file before executing the command. (#286)Changed
CHANGELOG.md
rather than HISTORY.rst
Fixed
cat = x
are not magic commands, so they are not commented any more (#339)"cat"
being converted to a markdown cell) in the py:light
format (#339)jupytext --test textfile.ext
now really compares the text file to its round trip (rather than the corresponding notebook) (#339)%%python3
cell magic are now preserved in a round trip through the Markdown format (#365)jupytext --execute
runs the notebook in its folder (#382)#R_CODE#
(#383)Published by mwouts almost 5 years ago
Read a more user friendly version here!
Improvements
.md
and .py
is now supported. Input cells are loaded from the most recent text representation (#290)<!-- #raw -->
and <!-- #endraw -->
) in Markdown files (#321)<!-- #region -->
, <!-- #markdown -->
or <!-- #md -->
(#344).noeval
attribute are inactive in Jupyter (#347)py:percent
format. And Markdown cells can start with just # %% [md]
(#305)# + [markdown]
rather than the previous cell_type
metadata to identify markdown cells with metadata (#356)# + [markdown]
can use triple quotes (#356)float?
are classified as magics, and thus commented in Python scripts (#297)cell_metadata_json
should help minimize the impact on existing files (#344)jupytext notebook.py --to ipynb
updates the timestamp of notebook.py
so that the paired notebook still works in Jupyter (#335, #254)jupytext --check pytest notebook.ipynb
can be used to run test functions in a notebook (#286)jupytext --check
and jupytext --pipe
can run commands that only operate on files: when {}
is found in the text of the command, jupytext
saves the text representation of the notebook in a temp file, and replaces {}
with the name of that file before executing the command. (#286)BugFixes
cat = x
are not magic commands, so they are not commented any more (#339)"cat"
being converted to a markdown cell) in the py:light
format (#339)jupytext --test textfile.ext
now really compares the text file to its round trip (rather than the corresponding notebook) (#339)%%python3
cell magic are now preserved in a round trip through the Markdown format (#365)Published by mwouts about 5 years ago
Improvements
<!-- #raw -->
and <!-- #endraw -->
) in Markdown files. And code blocks from Markdown files, when they don't have an explicit language, are displayed as Markdown cells in Jupyter (#321)py:percent
format (#305)jupytext notebook.py --to ipynb
updates the timestamp of notebook.py
so that the paired notebook still works in Jupyter (#335, #254)BugFixes
"cat"
being converted to a markdown cell) in the py:light
format (#339)cat = x
are not magic commands {#339)jupytext --test
now really compares the text (rather than the corresponding notebook) when run on text files (#339)Published by mwouts about 5 years ago
Improvements
--warn-only
is not set (#327)BugFixes
--warn-only
catches every possible error (#263).md
and .markdown
files are treated identically (#325)--set-kernel
when using pipes (#326)Published by mwouts about 5 years ago
BugFixes
setuptools
in pandoc.py
made optional to fix the build of the conda package (#310, #323)Published by mwouts about 5 years ago
Improvements
jupytext --execute notebook.md
(#303)as_version
in jupytext.read
is nbformat.NO_CONVERT
, as for nbformat.read
BugFixes
fmt
argument in jupytext.read
(#312)c.notebook_extensions
has a custom value (#318)Published by mwouts over 5 years ago
Improvements
read
and write
functions are easier to use (#292)BugFixes
jupyterlab-jupytext
extension in version 1.0.2. The version 1.0.1 erroneously introduces a target_formats
metadata in the jupytext section, instead of formats
, and works only after two clicks.Published by mwouts over 5 years ago
Improvements
--execute
option in Jupytext CLI (#231)--set-formats
option in Jupytext CLI also triggers --sync
, allowing shorter commands.jupytext
's read
and write
functions can be used as drop-in replacements for nbformat
's ones (#262).jupytext --sync
will now skip unpaired notebooks (#281).jupyter_server
(#270)mock
and testfixtures
, thanks to Jean-Sebastien Dieu (#279).markdown
extension (#288)BugFixes
jupyterlab-jupytext
extension shipped with the python package is in version 1.0.1, and is compatible only with JupyterLab >= 1.0. If you use an earlier version of JupyterLab, please install the version 0.19 of the extension with jupyter labextension install [email protected]
(#276, #278)Published by mwouts over 5 years ago
Improvements
--execute
option in Jupytext CLI (#231)--set-formats
option in Jupytext CLI also triggers --sync
, allowing shorter commands.jupytext
's read
and write
functions can be used as drop-in replacements for nbformat
's ones (#262).jupytext --sync
will now skip unpaired notebooks (#281).jupyter_server
(#270)mock
and testfixtures
, thanks to Jean-Sebastien Dieu (#279)BugFixes
jupyterlab-jupytext
extension shipped with the python package is in version 1.0, and is compatible only with JupyterLab >= 1.0. If you use an earlier version of JupyterLab, please install the version 0.19 of the extension with jupyter labextension install [email protected]
(#276, #278)Published by mwouts over 5 years ago
Improvements
BugFixes
jupyter_nbextensions_configurator
(#178).md
files in the documentation (#255)