Skip to content

Commit

Permalink
Some notebooks with cell ids for sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed May 10, 2023
1 parent 166c9dd commit 663cc6c
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 0 deletions.
118 changes: 118 additions & 0 deletions nbdime/tests/files/cellids--base.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "885cad67",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def f(x):\n",
" return x**2"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "c2c4a8f2",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = 3"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "0c3a036c",
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"9"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f(x)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "ac5427e8",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = 3"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "4ee12f52",
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"9"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f(x)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "226e9ff8",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
118 changes: 118 additions & 0 deletions nbdime/tests/files/cellids--local.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "885cad67",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def f(x):\n",
" return x**2"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "c2c4a8f2",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = 5"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "0c3a036c",
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"25"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f(x)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "ac5427e8",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = 3"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "4ee12f52",
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"9"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f(x)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "226e3ff8",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
118 changes: 118 additions & 0 deletions nbdime/tests/files/cellids--remote.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "885cad67",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def f(x):\n",
" return x**2"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "c2c4a8f2",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = 3"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "0c3a036c",
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"9"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f(x)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "ac5427e8",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = 7"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "4ee12f52",
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"49"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f(x)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "226e4ff8",
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit 663cc6c

Please sign in to comment.