Forrest logo
back to the jupytext tool

jupytext:tldr:0ced9

jupytext: Update the input cells in a notebook and preserve outputs and metadata.
$ jupytext --update --to notebook ${notebook-py}
try on your machine

The command you provided is using the Jupytext tool to update a notebook file from a Python script file.

Here's the breakdown of the command:

  • jupytext is the command or executable being executed.
  • --update is an option or flag for the jupytext command, indicating that the notebook file should be updated.
  • --to notebook is another option or flag for the jupytext command, specifying that the updated file should be in the notebook format.
  • ${notebook-py} is a placeholder or variable representing the filename of the Python script file.

The command essentially tells Jupytext to take the specified Python script file, update it, and convert it into a notebook file. The resulting notebook file will have the same name as the original Python script file but with the .ipynb extension.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the jupytext tool