-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional notebook for testing the Markdown format
- Loading branch information
Showing
9 changed files
with
473 additions
and
6 deletions.
There are no files selected for viewing
146 changes: 146 additions & 0 deletions
146
tests/notebooks/ipynb_py/Notebook with metadata and long cells.ipynb
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,146 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Part one - various cells" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Here we have a markdown cell\n", | ||
"\n", | ||
"\n", | ||
"with two blank lines" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Now we have a markdown cell\n", | ||
"with a code block inside it\n", | ||
"\n", | ||
"```python\n", | ||
"1 + 1\n", | ||
"```\n", | ||
"\n", | ||
"After that cell we'll have a code cell" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"6" | ||
] | ||
}, | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"2 + 2\n", | ||
"\n", | ||
"\n", | ||
"3 + 3" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Followed by a raw cell" | ||
] | ||
}, | ||
{ | ||
"cell_type": "raw", | ||
"metadata": {}, | ||
"source": [ | ||
"This is \n", | ||
"the content\n", | ||
"of the raw cell" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Part two - cell metadata" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"key": "value" | ||
}, | ||
"source": [ | ||
"This is a markdown cell with cell metadata `{\"key\": \"value\"}`" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": { | ||
".class": null, | ||
"tags": [ | ||
"parameters" | ||
] | ||
}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"'This is a code cell with metadata `{\"tags\":[\"parameters\"], \".class\":null}`'" | ||
] | ||
}, | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"\"\"\"This is a code cell with metadata `{\"tags\":[\"parameters\"], \".class\":null}`\"\"\"" | ||
] | ||
}, | ||
{ | ||
"cell_type": "raw", | ||
"metadata": { | ||
"key": "value" | ||
}, | ||
"source": [ | ||
"This is a raw cell with cell metadata `{\"key\": \"value\"}`" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"celltoolbar": "Edit Metadata", | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.6.6" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
56 changes: 56 additions & 0 deletions
56
tests/notebooks/mirror/ipynb_to_Rmd/Notebook with metadata and long cells.Rmd
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,56 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: Python 3 | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
# Part one - various cells | ||
|
||
[region]: # | ||
Here we have a markdown cell | ||
|
||
|
||
with two blank lines | ||
|
||
[endregion]: # | ||
|
||
Now we have a markdown cell | ||
with a code block inside it | ||
|
||
```python | ||
1 + 1 | ||
``` | ||
|
||
After that cell we'll have a code cell | ||
|
||
```{python} | ||
2 + 2 | ||
3 + 3 | ||
``` | ||
|
||
Followed by a raw cell | ||
|
||
```{python active="", eval=FALSE} | ||
This is | ||
the content | ||
of the raw cell | ||
``` | ||
|
||
# Part two - cell metadata | ||
|
||
[region {"key": "value"}]: # | ||
This is a markdown cell with cell metadata `{"key": "value"}` | ||
|
||
[endregion]: # | ||
|
||
```{python .class=None, tags=c("parameters")} | ||
"""This is a code cell with metadata `{"tags":["parameters"], ".class":null}`""" | ||
``` | ||
|
||
```{python key=value, active="", eval=FALSE} | ||
This is a raw cell with cell metadata `{"key": "value"}` | ||
``` |
52 changes: 52 additions & 0 deletions
52
tests/notebooks/mirror/ipynb_to_hydrogen/Notebook with metadata and long cells.py
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,52 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Python 3 | ||
# language: python | ||
# name: python3 | ||
# --- | ||
|
||
# %% [markdown] | ||
# # Part one - various cells | ||
|
||
# %% [markdown] | ||
# Here we have a markdown cell | ||
# | ||
# | ||
# with two blank lines | ||
|
||
# %% [markdown] | ||
# Now we have a markdown cell | ||
# with a code block inside it | ||
# | ||
# ```python | ||
# 1 + 1 | ||
# ``` | ||
# | ||
# After that cell we'll have a code cell | ||
|
||
# %% | ||
2 + 2 | ||
|
||
|
||
3 + 3 | ||
|
||
# %% [markdown] | ||
# Followed by a raw cell | ||
|
||
# %% [raw] | ||
# This is | ||
# the content | ||
# of the raw cell | ||
|
||
# %% [markdown] | ||
# # Part two - cell metadata | ||
|
||
# %% [markdown] {"key": "value"} | ||
# This is a markdown cell with cell metadata `{"key": "value"}` | ||
|
||
# %% {".class": null, "tags": ["parameters"]} | ||
"""This is a code cell with metadata `{"tags":["parameters"], ".class":null}`""" | ||
|
||
# %% [raw] {"key": "value"} | ||
# This is a raw cell with cell metadata `{"key": "value"}` |
59 changes: 59 additions & 0 deletions
59
tests/notebooks/mirror/ipynb_to_md/Notebook with metadata and long cells.md
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,59 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: Python 3 | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
# Part one - various cells | ||
|
||
[region]: # | ||
Here we have a markdown cell | ||
|
||
|
||
with two blank lines | ||
|
||
[endregion]: # | ||
|
||
[region]: # | ||
Now we have a markdown cell | ||
with a code block inside it | ||
|
||
```python | ||
1 + 1 | ||
``` | ||
|
||
After that cell we'll have a code cell | ||
|
||
[endregion]: # | ||
|
||
```python | ||
2 + 2 | ||
|
||
|
||
3 + 3 | ||
``` | ||
|
||
Followed by a raw cell | ||
|
||
``` | ||
This is | ||
the content | ||
of the raw cell | ||
``` | ||
|
||
# Part two - cell metadata | ||
|
||
[region {"key": "value"}]: # | ||
This is a markdown cell with cell metadata `{"key": "value"}` | ||
|
||
[endregion]: # | ||
|
||
```python .class tags=["parameters"] | ||
"""This is a code cell with metadata `{"tags":["parameters"], ".class":null}`""" | ||
``` | ||
|
||
```key="value" | ||
This is a raw cell with cell metadata `{"key": "value"}` | ||
``` |
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
52 changes: 52 additions & 0 deletions
52
tests/notebooks/mirror/ipynb_to_percent/Notebook with metadata and long cells.py
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,52 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Python 3 | ||
# language: python | ||
# name: python3 | ||
# --- | ||
|
||
# %% [markdown] | ||
# # Part one - various cells | ||
|
||
# %% [markdown] | ||
# Here we have a markdown cell | ||
# | ||
# | ||
# with two blank lines | ||
|
||
# %% [markdown] | ||
# Now we have a markdown cell | ||
# with a code block inside it | ||
# | ||
# ```python | ||
# 1 + 1 | ||
# ``` | ||
# | ||
# After that cell we'll have a code cell | ||
|
||
# %% | ||
2 + 2 | ||
|
||
|
||
3 + 3 | ||
|
||
# %% [markdown] | ||
# Followed by a raw cell | ||
|
||
# %% [raw] | ||
# This is | ||
# the content | ||
# of the raw cell | ||
|
||
# %% [markdown] | ||
# # Part two - cell metadata | ||
|
||
# %% [markdown] {"key": "value"} | ||
# This is a markdown cell with cell metadata `{"key": "value"}` | ||
|
||
# %% {".class": null, "tags": ["parameters"]} | ||
"""This is a code cell with metadata `{"tags":["parameters"], ".class":null}`""" | ||
|
||
# %% [raw] {"key": "value"} | ||
# This is a raw cell with cell metadata `{"key": "value"}` |
Oops, something went wrong.