Skip to content
Draft
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions docs/figures.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ Adding an image to your notebook using the standard Markdown syntax will work as
By switching to MyST Directives or figures (and images) can be inserted with some additional control. `figure`s can also be cross-referenced in other places in the notebook. For example, the following `figure`:

```{myst}
:::{figure} https://source.unsplash.com/random/400x200?beach,ocean
:::{figure} https://picsum.photos/seed/myst-101/400/200
:name: myFigure
:alt: Random image of the beach or ocean!
:alt: Image of a peer by the ocean
:align: center

Randomized beach and ocean images from Unsplash 🏖
Ocean image from Lorem Picsum 🏖
:::

Check out [](#myFigure)!!
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jupyter labextension disable jupyterlab-myst:executor

### Trust 🕵️‍♀️

Jupyter Notebooks implement a [trust-based security model](https://jupyter-notebook.readthedocs.io/en/stable/security.html). With the addition of inline expressions, Markdown cells are now considered when determining whether a given notebook is "trusted". Any Markdown cell with inline-expression metadata (with display data) is considered "untrusted". Like outputs, expression results are rendered using safe renderers if the cell is not considered trusted.
Jupyter Notebooks implement a [trust-based security model](https://jupyter-server.readthedocs.io/en/stable/operators/security.html). With the addition of inline expressions, Markdown cells are now considered when determining whether a given notebook is "trusted". Any Markdown cell with inline-expression metadata (with display data) is considered "untrusted". Like outputs, expression results are rendered using safe renderers if the cell is not considered trusted.
Executing the notebook will cause each cell to be considered trusted.

To facilitate this extension of the trust model, the `jupyterlab_myst` server extension replaces the `NotebookNotary` from `nbformat` with `MySTNotebookNotary`. This can be disabled with
Expand Down
14 changes: 7 additions & 7 deletions examples/myst_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@ math:
This is MyST in a notebook rendered by `jupyterlab-myst`!!
:::

```{figure} https://source.unsplash.com/random/800x200?sunset
```{figure} https://picsum.photos/800/200
:name: hello
:width: 40%
A nice sunset 🌅!!
A random 800x200 image
```

```{figure} https://source.unsplash.com/random/800x200?beach,ocean
```{figure} https://picsum.photos/seed/myst-003/800/200
:name: fig4
:width: 40%
Relaxing at the beach 🏖
Image of a wolf 🐺
```

This chart shows an example of `using` an interval **selection**[^1] to filter the contents of an attached histogram, allowing the user to see the proportion of items in each category within the selection. See more in the [Altair Documentation](https://altair-viz.github.io/gallery/selection_histogram.html)

[^1]: Footnote text

```{figure} https://source.unsplash.com/random/800x300?beach,ocean
```{figure} https://picsum.photos/seed/myst-013/800/300
:name: fig3
:width: 80%
Relaxing at the beach
A rocky coastline
```

```{math}
Expand Down Expand Up @@ -84,7 +84,7 @@ For example, this equation:
\mathbf{u} \times \mathbf{v}=\left|\begin{array}{ll}u_{2} & u_{3} \\ v_{2} & v_{3}\end{array}\right| \mathbf{i}+\left|\begin{array}{ll}u_{3} & u_{1} \\ v_{3} & v_{1}\end{array}\right| \mathbf{j}+\left|\begin{array}{ll}u_{1} & u_{2} \\ v_{1} & v_{2}\end{array}\right| \mathbf{k}
```

<div><img src="https://source.unsplash.com/random/800x300?beach,ocean" width="100px"></div>
<div><img alt="A random 800x300 image" src="https://picsum.photos/800/300" width="100px"></div>

<!-- just a comment! -->

Expand Down
Loading