Skip to content

Commit

Permalink
Notebook change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rmarieta committed Sep 12, 2023
1 parent 21ec1c4 commit 7dfa6c2
Showing 1 changed file with 76 additions and 104 deletions.
180 changes: 76 additions & 104 deletions src/examples/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-12T09:44:33.831202Z",
"iopub.status.busy": "2023-09-12T09:44:33.831202Z",
"iopub.status.idle": "2023-09-12T09:44:33.844488Z",
"shell.execute_reply": "2023-09-12T09:44:33.844488Z",
"shell.execute_reply.started": "2023-09-12T09:44:33.831202Z"
"iopub.execute_input": "2023-09-12T10:20:59.448042Z",
"iopub.status.busy": "2023-09-12T10:20:59.448042Z",
"iopub.status.idle": "2023-09-12T10:20:59.461325Z",
"shell.execute_reply": "2023-09-12T10:20:59.459919Z",
"shell.execute_reply.started": "2023-09-12T10:20:59.448042Z"
},
"tags": [
"time",
Expand All @@ -38,7 +38,11 @@
},
"outputs": [],
"source": [
"import time"
"import time\n",
"def function():\n",
" x = 2\n",
" y = 3 \n",
" return x + y"
]
},
{
Expand Down Expand Up @@ -80,11 +84,11 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-12T09:44:40.819706Z",
"iopub.status.busy": "2023-09-12T09:44:40.819706Z",
"iopub.status.idle": "2023-09-12T09:44:40.824771Z",
"shell.execute_reply": "2023-09-12T09:44:40.823755Z",
"shell.execute_reply.started": "2023-09-12T09:44:40.819706Z"
"iopub.execute_input": "2023-09-12T10:21:30.367705Z",
"iopub.status.busy": "2023-09-12T10:21:30.367705Z",
"iopub.status.idle": "2023-09-12T10:21:30.371984Z",
"shell.execute_reply": "2023-09-12T10:21:30.371984Z",
"shell.execute_reply.started": "2023-09-12T10:21:30.367705Z"
},
"tags": [
"import"
Expand All @@ -102,26 +106,6 @@
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"2+2"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -138,22 +122,30 @@
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-12T10:21:31.919043Z",
"iopub.status.busy": "2023-09-12T10:21:31.918006Z",
"iopub.status.idle": "2023-09-12T10:21:31.928868Z",
"shell.execute_reply": "2023-09-12T10:21:31.927828Z",
"shell.execute_reply.started": "2023-09-12T10:21:31.919043Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"1+1"
"random.randint(1,2)"
]
},
{
Expand All @@ -173,55 +165,28 @@
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-12T10:21:51.998905Z",
"iopub.status.busy": "2023-09-12T10:21:51.998905Z",
"iopub.status.idle": "2023-09-12T10:21:52.007576Z",
"shell.execute_reply": "2023-09-12T10:21:52.006058Z",
"shell.execute_reply.started": "2023-09-12T10:21:51.998905Z"
}
],
"source": [
"1+1"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Subsection"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"Here another function\n"
]
}
],
"source": [
"1+1"
"def f2():\n",
" print('Here another function')\n",
"f2()"
]
},
{
Expand All @@ -240,22 +205,20 @@
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
"execution_count": 7,
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-12T10:22:49.893751Z",
"iopub.status.busy": "2023-09-12T10:22:49.893751Z",
"iopub.status.idle": "2023-09-12T10:22:49.900346Z",
"shell.execute_reply": "2023-09-12T10:22:49.899337Z",
"shell.execute_reply.started": "2023-09-12T10:22:49.893751Z"
}
],
},
"outputs": [],
"source": [
"1+1"
"if 'blabla' in ['bla','bla'] :\n",
" print('blabla')"
]
},
{
Expand Down Expand Up @@ -308,22 +271,31 @@
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"execution_count": 8,
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-12T10:23:22.430579Z",
"iopub.status.busy": "2023-09-12T10:23:22.430579Z",
"iopub.status.idle": "2023-09-12T10:23:22.437635Z",
"shell.execute_reply": "2023-09-12T10:23:22.437099Z",
"shell.execute_reply.started": "2023-09-12T10:23:22.430579Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"0\n",
"1\n",
"2\n"
]
}
],
"source": [
"1+1"
"# comment\n",
"for i in range(3):\n",
" print(i)"
]
},
{
Expand Down Expand Up @@ -994,7 +966,7 @@
"metadata": {
"jpcodetoc-autonumbering": false,
"jpcodetoc-showcode": true,
"jpcodetoc-showmarkdowntxt": false,
"jpcodetoc-showmarkdowntxt": true,
"jpcodetoc-showtags": false,
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
Expand Down

0 comments on commit 7dfa6c2

Please sign in to comment.