Skip to content

Commit 202e1b0

Browse files
committed
clear notebook output
1 parent 64bf6de commit 202e1b0

4 files changed

Lines changed: 244 additions & 2145 deletions

File tree

python/python/0_Introduction.ipynb

Lines changed: 20 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,13 @@
7676
},
7777
{
7878
"cell_type": "code",
79-
"execution_count": 1,
79+
"execution_count": null,
8080
"metadata": {
8181
"slideshow": {
8282
"slide_type": "-"
8383
}
8484
},
85-
"outputs": [
86-
{
87-
"name": "stdout",
88-
"output_type": "stream",
89-
"text": [
90-
"Hello world\n"
91-
]
92-
}
93-
],
85+
"outputs": [],
9486
"source": [
9587
"print(\"Hello world\")"
9688
]
@@ -290,48 +282,26 @@
290282
},
291283
{
292284
"cell_type": "code",
293-
"execution_count": 2,
285+
"execution_count": null,
294286
"metadata": {
295287
"slideshow": {
296288
"slide_type": "-"
297289
}
298290
},
299-
"outputs": [
300-
{
301-
"data": {
302-
"text/plain": [
303-
"7.5"
304-
]
305-
},
306-
"execution_count": 2,
307-
"metadata": {},
308-
"output_type": "execute_result"
309-
}
310-
],
291+
"outputs": [],
311292
"source": [
312293
"4+7/2"
313294
]
314295
},
315296
{
316297
"cell_type": "code",
317-
"execution_count": 3,
298+
"execution_count": null,
318299
"metadata": {
319300
"slideshow": {
320301
"slide_type": "subslide"
321302
}
322303
},
323-
"outputs": [
324-
{
325-
"data": {
326-
"text/plain": [
327-
"7"
328-
]
329-
},
330-
"execution_count": 3,
331-
"metadata": {},
332-
"output_type": "execute_result"
333-
}
334-
],
304+
"outputs": [],
335305
"source": [
336306
"#Nota: \n",
337307
"# - the integer division is obtained from: //\n",
@@ -341,65 +311,40 @@
341311
},
342312
{
343313
"cell_type": "code",
344-
"execution_count": 4,
314+
"execution_count": null,
345315
"metadata": {
346316
"slideshow": {
347317
"slide_type": "subslide"
348318
}
349319
},
350-
"outputs": [
351-
{
352-
"name": "stdout",
353-
"output_type": "stream",
354-
"text": [
355-
"3.5.3 (default, Jan 19 2017, 14:11:04) \n",
356-
"[GCC 6.3.0 20170118]\n"
357-
]
358-
}
359-
],
320+
"outputs": [],
360321
"source": [
361322
"import sys\n",
362323
"print(sys.version)"
363324
]
364325
},
365326
{
366327
"cell_type": "code",
367-
"execution_count": 5,
328+
"execution_count": null,
368329
"metadata": {
369330
"slideshow": {
370331
"slide_type": "-"
371332
}
372333
},
373-
"outputs": [
374-
{
375-
"name": "stdout",
376-
"output_type": "stream",
377-
"text": [
378-
"/mntdirect/_scisoft/users/jupyter/jupy35/bin/python3.5\n"
379-
]
380-
}
381-
],
334+
"outputs": [],
382335
"source": [
383336
"print(sys.executable)"
384337
]
385338
},
386339
{
387340
"cell_type": "code",
388-
"execution_count": 6,
341+
"execution_count": null,
389342
"metadata": {
390343
"slideshow": {
391344
"slide_type": "subslide"
392345
}
393346
},
394-
"outputs": [
395-
{
396-
"name": "stdout",
397-
"output_type": "stream",
398-
"text": [
399-
"The sum of ∑_i∈N i*i = 164\n"
400-
]
401-
}
402-
],
347+
"outputs": [],
403348
"source": [
404349
"#Calculator example\n",
405350
"N = [1, 3, 4, 5, 7, 8]\n",
@@ -421,41 +366,13 @@
421366
},
422367
{
423368
"cell_type": "code",
424-
"execution_count": 7,
369+
"execution_count": null,
425370
"metadata": {
426371
"slideshow": {
427372
"slide_type": "-"
428373
}
429374
},
430-
"outputs": [
431-
{
432-
"name": "stdout",
433-
"output_type": "stream",
434-
"text": [
435-
"\n",
436-
"Welcome to Python 3.5's help utility!\n",
437-
"\n",
438-
"If this is your first time using Python, you should definitely check out\n",
439-
"the tutorial on the Internet at http://docs.python.org/3.5/tutorial/.\n",
440-
"\n",
441-
"Enter the name of any module, keyword, or topic to get help on writing\n",
442-
"Python programs and using Python modules. To quit this help utility and\n",
443-
"return to the interpreter, just type \"quit\".\n",
444-
"\n",
445-
"To get a list of available modules, keywords, symbols, or topics, type\n",
446-
"\"modules\", \"keywords\", \"symbols\", or \"topics\". Each module also comes\n",
447-
"with a one-line summary of what it does; to list the modules whose name\n",
448-
"or summary contain a given string such as \"spam\", type \"modules spam\".\n",
449-
"\n",
450-
"help> quit\n",
451-
"\n",
452-
"You are now leaving help and returning to the Python interpreter.\n",
453-
"If you want to ask for help on a particular object directly from the\n",
454-
"interpreter, you can type \"help(object)\". Executing \"help('string')\"\n",
455-
"has the same effect as typing a particular string at the help> prompt.\n"
456-
]
457-
}
458-
],
375+
"outputs": [],
459376
"source": [
460377
"help()"
461378
]
@@ -473,7 +390,7 @@
473390
},
474391
{
475392
"cell_type": "code",
476-
"execution_count": 8,
393+
"execution_count": null,
477394
"metadata": {
478395
"slideshow": {
479396
"slide_type": "-"
@@ -499,21 +416,13 @@
499416
},
500417
{
501418
"cell_type": "code",
502-
"execution_count": 9,
419+
"execution_count": null,
503420
"metadata": {
504421
"slideshow": {
505422
"slide_type": "-"
506423
}
507424
},
508-
"outputs": [
509-
{
510-
"name": "stdout",
511-
"output_type": "stream",
512-
"text": [
513-
"7 Hey\n"
514-
]
515-
}
516-
],
425+
"outputs": [],
517426
"source": [
518427
"x = 2 # anything after a '#' is a comment\n",
519428
"y = 5\n",
@@ -534,21 +443,13 @@
534443
},
535444
{
536445
"cell_type": "code",
537-
"execution_count": 10,
446+
"execution_count": null,
538447
"metadata": {
539448
"slideshow": {
540449
"slide_type": "-"
541450
}
542451
},
543-
"outputs": [
544-
{
545-
"name": "stdout",
546-
"output_type": "stream",
547-
"text": [
548-
"1 + 1 = 2\n"
549-
]
550-
}
551-
],
452+
"outputs": [],
552453
"source": [
553454
"x = y = 1\n",
554455
"print(x, \"+\", y, \"=\", x+y )"
@@ -572,7 +473,7 @@
572473
"name": "python",
573474
"nbconvert_exporter": "python",
574475
"pygments_lexer": "ipython3",
575-
"version": "3.5.3"
476+
"version": "3.4.2"
576477
}
577478
},
578479
"nbformat": 4,

0 commit comments

Comments
 (0)