-
Notifications
You must be signed in to change notification settings - Fork 392
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
7 changed files
with
252 additions
and
1 deletion.
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
136 changes: 136 additions & 0 deletions
136
tests/notebooks/ipynb_py/Notebook with function and cell metadata 164.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,136 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"2" | ||
] | ||
}, | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"1 + 1" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"A markdown cell\n", | ||
"And below, the cell for function f has non trivial cell metadata. And the next cell as well." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": { | ||
"attributes": { | ||
"classes": [], | ||
"id": "", | ||
"n": "10" | ||
} | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"def f(x):\n", | ||
" return x" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"metadata": { | ||
"attributes": { | ||
"classes": [], | ||
"id": "", | ||
"n": "10" | ||
} | ||
}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"5" | ||
] | ||
}, | ||
"execution_count": 3, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"f(5)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"More text" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 4, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"4" | ||
] | ||
}, | ||
"execution_count": 4, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"2 + 2" | ||
] | ||
} | ||
], | ||
"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" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
"nav_menu": {}, | ||
"number_sections": true, | ||
"sideBar": true, | ||
"skip_h1_title": false, | ||
"title_cell": "Table of Contents", | ||
"title_sidebar": "Contents", | ||
"toc_cell": false, | ||
"toc_position": {}, | ||
"toc_section_display": true, | ||
"toc_window_display": false | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
29 changes: 29 additions & 0 deletions
29
tests/notebooks/mirror/ipynb_to_Rmd/Notebook with function and cell metadata 164.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,29 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: Python 3 | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
```{python} | ||
1 + 1 | ||
``` | ||
|
||
A markdown cell | ||
And below, the cell for function f has non trivial cell metadata. And the next cell as well. | ||
|
||
```{python attributes={'classes': [], 'id': '', 'n': '10'}} | ||
def f(x): | ||
return x | ||
``` | ||
|
||
```{python attributes={'classes': [], 'id': '', 'n': '10'}} | ||
f(5) | ||
``` | ||
|
||
More text | ||
|
||
```{python} | ||
2 + 2 | ||
``` |
29 changes: 29 additions & 0 deletions
29
tests/notebooks/mirror/ipynb_to_md/Notebook with function and cell metadata 164.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,29 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: Python 3 | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
```python | ||
1 + 1 | ||
``` | ||
|
||
A markdown cell | ||
And below, the cell for function f has non trivial cell metadata. And the next cell as well. | ||
|
||
```python | ||
def f(x): | ||
return x | ||
``` | ||
|
||
```python | ||
f(5) | ||
``` | ||
|
||
More text | ||
|
||
```python | ||
2 + 2 | ||
``` |
29 changes: 29 additions & 0 deletions
29
tests/notebooks/mirror/ipynb_to_percent/Notebook with function and cell metadata 164.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,29 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Python 3 | ||
# language: python | ||
# name: python3 | ||
# --- | ||
|
||
# %% | ||
1 + 1 | ||
|
||
|
||
# %% [markdown] | ||
# A markdown cell | ||
# And below, the cell for function f has non trivial cell metadata. And the next cell as well. | ||
|
||
# %% {"attributes": {"classes": [], "id": "", "n": "10"}} | ||
def f(x): | ||
return x | ||
|
||
|
||
# %% {"attributes": {"classes": [], "id": "", "n": "10"}} | ||
f(5) | ||
|
||
# %% [markdown] | ||
# More text | ||
|
||
# %% | ||
2 + 2 |
26 changes: 26 additions & 0 deletions
26
tests/notebooks/mirror/ipynb_to_script/Notebook with function and cell metadata 164.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,26 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Python 3 | ||
# language: python | ||
# name: python3 | ||
# --- | ||
|
||
1 + 1 | ||
|
||
|
||
# A markdown cell | ||
# And below, the cell for function f has non trivial cell metadata. And the next cell as well. | ||
|
||
# + {"attributes": {"classes": [], "id": "", "n": "10"}} | ||
def f(x): | ||
return x | ||
|
||
|
||
# + {"attributes": {"classes": [], "id": "", "n": "10"}} | ||
f(5) | ||
# - | ||
|
||
# More text | ||
|
||
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