Skip to content

Fixed showing images in the Pairing tutorial #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 26 additions & 28 deletions content/pairing.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,34 +204,32 @@ to include the Jupytext extension.

You can pair the two formats in the classic Jupyter, Jupyter Lab,
or the command line:
<ul>
<details>
<summary>
<b>1. Classic Jupyter Jupytext pairing</b>.
</summary>
<img src="../_static/01-classic.gif" width=80% height=80%>
</details>

<details>
<summary>
<b>2. Jupyter Lab Jupytext pairing</b>
</summary>
<img src="../_static/02-jupyterlab.gif" width=80% height=80%>
</details>

<details>
<summary>
<b>3. Command line Jupytext pairing</b>
</summary>
<pre><code>
jupytext --set-formats ipynb,myst notebook.ipynb
</pre></code>
Then, update either the MyST markdown or notebook file:
<pre><code>
jupytext --sync notebook.ipynb
</pre></code>
</details>
</ul>

```{admonition} **1. Classic Jupyter Jupytext pairing**
:class: toggle

![Animation showing pairing with Jupyter classic](_static/01-classic.gif)
```

```{admonition} **2. JupyterLab Jupytext pairing**
:class: toggle

![Animation showing pairing with JupyterLab](_static/02-jupyterlab.gif)
```

````{admonition} **3. Command line Jupytext pairing**
:class: toggle

```sh
jupytext --set-formats ipynb,myst notebook.ipynb
```

Then, update either the MyST markdown or notebook file:

```sh
jupytext --sync notebook.ipynb
```
````

> __Note:__ With Jupytext installed, the classic Jupyter interface will
> automatically open MyST files as notebooks. In JupyterLab, you can
Expand Down