diff --git a/tests/notebooks/ipynb_py/The flavors of raw cells.ipynb b/tests/notebooks/ipynb_py/The flavors of raw cells.ipynb new file mode 100644 index 000000000..9576c5a5d --- /dev/null +++ b/tests/notebooks/ipynb_py/The flavors of raw cells.ipynb @@ -0,0 +1,78 @@ +{ + "cells": [ + { + "cell_type": "raw", + "metadata": { + "raw_mimetype": "text/latex" + }, + "source": [ + "$1+1$" + ] + }, + { + "cell_type": "raw", + "metadata": { + "raw_mimetype": "text/restructuredtext" + }, + "source": [ + ":math:`1+1`" + ] + }, + { + "cell_type": "raw", + "metadata": { + "raw_mimetype": "text/html" + }, + "source": [ + "Bold text" + ] + }, + { + "cell_type": "raw", + "metadata": { + "raw_mimetype": "text/markdown" + }, + "source": [ + "**Bold text**" + ] + }, + { + "cell_type": "raw", + "metadata": { + "raw_mimetype": "text/x-python" + }, + "source": [ + "1 + 1" + ] + }, + { + "cell_type": "raw", + "metadata": {}, + "source": [ + "Not formatted" + ] + } + ], + "metadata": { + "celltoolbar": "Format de la Cellule Texte Brut", + "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.7.3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/tests/notebooks/mirror/ipynb_to_Rmd/The flavors of raw cells.Rmd b/tests/notebooks/mirror/ipynb_to_Rmd/The flavors of raw cells.Rmd new file mode 100644 index 000000000..767380a3d --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_Rmd/The flavors of raw cells.Rmd @@ -0,0 +1,31 @@ +--- +jupyter: + kernelspec: + display_name: Python 3 + language: python + name: python3 +--- + +```{python raw_mimetype=text/latex, active="", eval=FALSE} +$1+1$ +``` + +```{python raw_mimetype=text/restructuredtext, active="", eval=FALSE} +:math:`1+1` +``` + +```{python raw_mimetype=text/html, active="", eval=FALSE} +Bold text +``` + +```{python raw_mimetype=text/markdown, active="", eval=FALSE} +**Bold text** +``` + +```{python raw_mimetype=text/x-python, active="", eval=FALSE} +1 + 1 +``` + +```{python active="", eval=FALSE} +Not formatted +``` diff --git a/tests/notebooks/mirror/ipynb_to_hydrogen/The flavors of raw cells.py b/tests/notebooks/mirror/ipynb_to_hydrogen/The flavors of raw cells.py new file mode 100644 index 000000000..bce9226ad --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_hydrogen/The flavors of raw cells.py @@ -0,0 +1,25 @@ +# --- +# jupyter: +# kernelspec: +# display_name: Python 3 +# language: python +# name: python3 +# --- + +# %% [raw] {"raw_mimetype": "text/latex"} +# $1+1$ + +# %% [raw] {"raw_mimetype": "text/restructuredtext"} +# :math:`1+1` + +# %% [raw] {"raw_mimetype": "text/html"} +# Bold text + +# %% [raw] {"raw_mimetype": "text/markdown"} +# **Bold text** + +# %% [raw] {"raw_mimetype": "text/x-python"} +# 1 + 1 + +# %% [raw] +# Not formatted diff --git a/tests/notebooks/mirror/ipynb_to_md/The flavors of raw cells.md b/tests/notebooks/mirror/ipynb_to_md/The flavors of raw cells.md new file mode 100644 index 000000000..137aa8ce4 --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_md/The flavors of raw cells.md @@ -0,0 +1,31 @@ +--- +jupyter: + kernelspec: + display_name: Python 3 + language: python + name: python3 +--- + +```raw_mimetype="text/latex" +$1+1$ +``` + +```raw_mimetype="text/restructuredtext" +:math:`1+1` +``` + +```raw_mimetype="text/html" +Bold text +``` + +```raw_mimetype="text/markdown" +**Bold text** +``` + +```raw_mimetype="text/x-python" +1 + 1 +``` + +``` +Not formatted +``` diff --git a/tests/notebooks/mirror/ipynb_to_percent/The flavors of raw cells.py b/tests/notebooks/mirror/ipynb_to_percent/The flavors of raw cells.py new file mode 100644 index 000000000..bce9226ad --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_percent/The flavors of raw cells.py @@ -0,0 +1,25 @@ +# --- +# jupyter: +# kernelspec: +# display_name: Python 3 +# language: python +# name: python3 +# --- + +# %% [raw] {"raw_mimetype": "text/latex"} +# $1+1$ + +# %% [raw] {"raw_mimetype": "text/restructuredtext"} +# :math:`1+1` + +# %% [raw] {"raw_mimetype": "text/html"} +# Bold text + +# %% [raw] {"raw_mimetype": "text/markdown"} +# **Bold text** + +# %% [raw] {"raw_mimetype": "text/x-python"} +# 1 + 1 + +# %% [raw] +# Not formatted diff --git a/tests/notebooks/mirror/ipynb_to_script/The flavors of raw cells.py b/tests/notebooks/mirror/ipynb_to_script/The flavors of raw cells.py new file mode 100644 index 000000000..33e748585 --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_script/The flavors of raw cells.py @@ -0,0 +1,25 @@ +# --- +# jupyter: +# kernelspec: +# display_name: Python 3 +# language: python +# name: python3 +# --- + +# + {"raw_mimetype": "text/latex", "active": ""} +# $1+1$ + +# + {"raw_mimetype": "text/restructuredtext", "active": ""} +# :math:`1+1` + +# + {"raw_mimetype": "text/html", "active": ""} +# Bold text + +# + {"raw_mimetype": "text/markdown", "active": ""} +# **Bold text** + +# + {"raw_mimetype": "text/x-python", "active": ""} +# 1 + 1 + +# + {"active": ""} +# Not formatted diff --git a/tests/notebooks/mirror/ipynb_to_script_vim_folding_markers/The flavors of raw cells.py b/tests/notebooks/mirror/ipynb_to_script_vim_folding_markers/The flavors of raw cells.py new file mode 100644 index 000000000..575fef2c7 --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_script_vim_folding_markers/The flavors of raw cells.py @@ -0,0 +1,33 @@ +# --- +# jupyter: +# jupytext: +# cell_markers: '{{{,}}}' +# kernelspec: +# display_name: Python 3 +# language: python +# name: python3 +# --- + +# {{{ {"raw_mimetype": "text/latex", "active": ""} +# $1+1$ +# }}} + +# {{{ {"raw_mimetype": "text/restructuredtext", "active": ""} +# :math:`1+1` +# }}} + +# {{{ {"raw_mimetype": "text/html", "active": ""} +# Bold text +# }}} + +# {{{ {"raw_mimetype": "text/markdown", "active": ""} +# **Bold text** +# }}} + +# {{{ {"raw_mimetype": "text/x-python", "active": ""} +# 1 + 1 +# }}} + +# {{{ {"active": ""} +# Not formatted +# }}} diff --git a/tests/notebooks/mirror/ipynb_to_script_vscode_folding_markers/The flavors of raw cells.py b/tests/notebooks/mirror/ipynb_to_script_vscode_folding_markers/The flavors of raw cells.py new file mode 100644 index 000000000..2916fb319 --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_script_vscode_folding_markers/The flavors of raw cells.py @@ -0,0 +1,33 @@ +# --- +# jupyter: +# jupytext: +# cell_markers: region,endregion +# kernelspec: +# display_name: Python 3 +# language: python +# name: python3 +# --- + +# region {"raw_mimetype": "text/latex", "active": ""} +# $1+1$ +# endregion + +# region {"raw_mimetype": "text/restructuredtext", "active": ""} +# :math:`1+1` +# endregion + +# region {"raw_mimetype": "text/html", "active": ""} +# Bold text +# endregion + +# region {"raw_mimetype": "text/markdown", "active": ""} +# **Bold text** +# endregion + +# region {"raw_mimetype": "text/x-python", "active": ""} +# 1 + 1 +# endregion + +# region {"active": ""} +# Not formatted +# endregion