-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
jupytext: | ||
text_representation: | ||
extension: .md | ||
format_name: myst | ||
format_version: '0.8' | ||
jupytext_version: 1.4.1+dev | ||
kernelspec: | ||
display_name: Python 3 | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
# Test the `:only:` option | ||
|
||
```{code-cell} | ||
:only: html | ||
1+1 | ||
``` | ||
|
||
```{code-cell} | ||
:only: latex | ||
2+2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<document source="with_only"> | ||
<section ids="test-the-only-option" names="test\ the\ :only:\ option"> | ||
<title> | ||
Test the | ||
<literal> | ||
:only: | ||
option | ||
<container cell_index="1" cell_metadata="{'only': 'html'}" classes="cell" exec_count="1" nb_element="cell_code"> | ||
<container classes="cell_input" nb_element="cell_code_source"> | ||
<literal_block language="ipython3" xml:space="preserve"> | ||
1+1 | ||
<container classes="cell_output" nb_element="cell_code_output"> | ||
<container nb_element="mime_bundle"> | ||
<container mime_type="text/plain"> | ||
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve"> | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<document source="with_only"> | ||
<section ids="test-the-only-option" names="test\ the\ :only:\ option"> | ||
<title> | ||
Test the | ||
<literal> | ||
:only: | ||
option | ||
<container cell_index="1" cell_metadata="{'only': 'latex'}" classes="cell" exec_count="1" nb_element="cell_code"> | ||
<container classes="cell_input" nb_element="cell_code_source"> | ||
<literal_block language="ipython3" xml:space="preserve"> | ||
2+2 | ||
<container classes="cell_output" nb_element="cell_code_output"> | ||
<container nb_element="mime_bundle"> | ||
<container mime_type="text/plain"> | ||
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve"> | ||
4 |