Skip to content

Commit

Permalink
Normalize the sample notebooks (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 29, 2022
1 parent 56240e3 commit 99078cd
Show file tree
Hide file tree
Showing 10 changed files with 217 additions and 187 deletions.
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Jupytext ChangeLog
==================

1.14.2-dev (2022-10-??)
-------------------

**Fixed**
- The sample notebooks have been normalized with `nbformat.validator.normalize` ([#1002](https://github.com/mwouts/jupytext/issues/1002)).


1.14.1 (2022-07-29)
-------------------

Expand Down
3 changes: 1 addition & 2 deletions tests/notebooks/ipynb_clojure/html-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"source": [
"# Clojupyter Demo\n",
"\n",
"This example notebook is from the [Clojupyter](https://github.com/clojupyter/clojupyter/blob/1637f6b2557f01db1e35bae5389bc38522eefe9a/examples/html-demo.ipynb) project.",
"\n",
"This example notebook is from the [Clojupyter](https://github.com/clojupyter/clojupyter/blob/1637f6b2557f01db1e35bae5389bc38522eefe9a/examples/html-demo.ipynb) project.\n",
"This notebook demonstrates some of the more advanced features of Clojupyter."
]
},
Expand Down
38 changes: 21 additions & 17 deletions tests/notebooks/ipynb_ocaml/ocaml_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,61 @@
"cells": [
{
"cell_type": "markdown",
"id": "0ce05620",
"metadata": {},
"source": [
"# Example of an OCaml notebook"
],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": 3,
"source": [
"let sum x y = x + y"
],
"id": "5c62301c",
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"val sum : int -> int -> int = <fun>\n"
]
},
"execution_count": 3,
"metadata": {},
"execution_count": 3
"output_type": "execute_result"
}
],
"metadata": {}
"source": [
"let sum x y = x + y"
]
},
{
"cell_type": "markdown",
"id": "f89c9670",
"metadata": {},
"source": [
"Let's try our function:"
],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": 4,
"source": [
"sum 3 4 = 7 + 0"
],
"id": "d2b696e3",
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"- : bool = true\n"
]
},
"execution_count": 4,
"metadata": {},
"execution_count": 4
"output_type": "execute_result"
}
],
"metadata": {}
"source": [
"sum 3 4 = 7 + 0"
]
}
],
"metadata": {
Expand All @@ -76,4 +80,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
2 changes: 1 addition & 1 deletion tests/notebooks/ipynb_ps1/powershell.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cells": [
"cells": [
{
"cell_type": "markdown",
"metadata": {},
Expand Down
4 changes: 3 additions & 1 deletion tests/notebooks/ipynb_py/jupyter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {"scrolled":true},
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
Expand Down
4 changes: 2 additions & 2 deletions tests/notebooks/ipynb_py/notebook_with_complex_metadata.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
},
},
"widgets": {
"state": {
"a65a11f142ca44eebc913788d256adcb": {
Expand All @@ -37,7 +37,7 @@
}
]
}
},
},
"version": "1.2.0"
}
},
Expand Down
Loading

0 comments on commit 99078cd

Please sign in to comment.