Skip to content

Commit aca4493

Browse files
melissawmrossbar
andauthored
Fixed showing images in the Pairing tutorial (numpy#78)
* Fixed showing images in the Pairing tutorial. * Update content/pairing.md Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
1 parent 1ff0974 commit aca4493

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

content/pairing.md

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -204,34 +204,32 @@ to include the Jupytext extension.
204204

205205
You can pair the two formats in the classic Jupyter, Jupyter Lab,
206206
or the command line:
207-
<ul>
208-
<details>
209-
<summary>
210-
<b>1. Classic Jupyter Jupytext pairing</b>.
211-
</summary>
212-
<img src="../_static/01-classic.gif" width=80% height=80%>
213-
</details>
214-
215-
<details>
216-
<summary>
217-
<b>2. Jupyter Lab Jupytext pairing</b>
218-
</summary>
219-
<img src="../_static/02-jupyterlab.gif" width=80% height=80%>
220-
</details>
221-
222-
<details>
223-
<summary>
224-
<b>3. Command line Jupytext pairing</b>
225-
</summary>
226-
<pre><code>
227-
jupytext --set-formats ipynb,myst notebook.ipynb
228-
</pre></code>
229-
Then, update either the MyST markdown or notebook file:
230-
<pre><code>
231-
jupytext --sync notebook.ipynb
232-
</pre></code>
233-
</details>
234-
</ul>
207+
208+
```{admonition} **1. Classic Jupyter Jupytext pairing**
209+
:class: toggle
210+
211+
![Animation showing pairing with Jupyter classic](_static/01-classic.gif)
212+
```
213+
214+
```{admonition} **2. JupyterLab Jupytext pairing**
215+
:class: toggle
216+
217+
![Animation showing pairing with JupyterLab](_static/02-jupyterlab.gif)
218+
```
219+
220+
````{admonition} **3. Command line Jupytext pairing**
221+
:class: toggle
222+
223+
```sh
224+
jupytext --set-formats ipynb,myst notebook.ipynb
225+
```
226+
227+
Then, update either the MyST markdown or notebook file:
228+
229+
```sh
230+
jupytext --sync notebook.ipynb
231+
```
232+
````
235233

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy