-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Robust conversion of metadata to YAML #99
- Loading branch information
Showing
7 changed files
with
180 additions
and
7 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
46 changes: 46 additions & 0 deletions
46
tests/notebooks/ipynb_py/notebook_with_complex_metadata.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,46 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"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.5.1" | ||
}, | ||
"widgets": { | ||
"state": { | ||
"a65a11f142ca44eebc913788d256adcb": { | ||
"views": [ | ||
{ | ||
"cell_index": 92 | ||
} | ||
] | ||
} | ||
}, | ||
"version": "1.2.0" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
27 changes: 27 additions & 0 deletions
27
tests/notebooks/mirror/ipynb_to_Rmd/notebook_with_complex_metadata.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,27 @@ | ||
--- | ||
jupyter: | ||
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.5.1 | ||
widgets: | ||
state: | ||
a65a11f142ca44eebc913788d256adcb: | ||
views: | ||
- cell_index: 92 | ||
version: 1.2.0 | ||
--- | ||
|
||
```{python} | ||
``` |
27 changes: 27 additions & 0 deletions
27
tests/notebooks/mirror/ipynb_to_md/notebook_with_complex_metadata.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,27 @@ | ||
--- | ||
jupyter: | ||
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.5.1 | ||
widgets: | ||
state: | ||
a65a11f142ca44eebc913788d256adcb: | ||
views: | ||
- cell_index: 92 | ||
version: 1.2.0 | ||
--- | ||
|
||
```python | ||
|
||
``` |
26 changes: 26 additions & 0 deletions
26
tests/notebooks/mirror/ipynb_to_percent/notebook_with_complex_metadata.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 | ||
# 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.5.1 | ||
# widgets: | ||
# state: | ||
# a65a11f142ca44eebc913788d256adcb: | ||
# views: | ||
# - cell_index: 92 | ||
# version: 1.2.0 | ||
# --- | ||
|
||
# %% | ||
|
25 changes: 25 additions & 0 deletions
25
tests/notebooks/mirror/ipynb_to_script/notebook_with_complex_metadata.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,25 @@ | ||
# --- | ||
# jupyter: | ||
# 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.5.1 | ||
# widgets: | ||
# state: | ||
# a65a11f142ca44eebc913788d256adcb: | ||
# views: | ||
# - cell_index: 92 | ||
# version: 1.2.0 | ||
# --- | ||
|
||
|
25 changes: 25 additions & 0 deletions
25
tests/notebooks/mirror/ipynb_to_sphinx/notebook_with_complex_metadata.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,25 @@ | ||
# --- | ||
# jupyter: | ||
# 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.5.1 | ||
# widgets: | ||
# state: | ||
# a65a11f142ca44eebc913788d256adcb: | ||
# views: | ||
# - cell_index: 92 | ||
# version: 1.2.0 | ||
# --- | ||
|
||
|