mynotebook.ipynb
50 lines
| 775 B
| text/plain
|
TextLexer
MinRK
|
r11699 | { | |
Min RK
|
r18669 | "cells": [ | |
MinRK
|
r11699 | { | |
Min RK
|
r18669 | "cell_type": "markdown", | |
"metadata": {}, | |||
"source": [ | |||
"# My Notebook" | |||
] | |||
}, | |||
{ | |||
"cell_type": "code", | |||
"execution_count": 1, | |||
"metadata": { | |||
"collapsed": false | |||
}, | |||
"outputs": [], | |||
"source": [ | |||
"def foo():\n", | |||
" return \"foo\"" | |||
] | |||
}, | |||
{ | |||
"cell_type": "code", | |||
"execution_count": 2, | |||
"metadata": { | |||
"collapsed": false | |||
}, | |||
"outputs": [], | |||
"source": [ | |||
"def has_ip_syntax():\n", | |||
" listing = !ls\n", | |||
" return listing" | |||
] | |||
}, | |||
{ | |||
"cell_type": "code", | |||
"execution_count": 4, | |||
"metadata": { | |||
"collapsed": false | |||
}, | |||
"outputs": [], | |||
"source": [ | |||
"def whatsmyname():\n", | |||
" return __name__" | |||
] | |||
MinRK
|
r11699 | } | |
Min RK
|
r18669 | ], | |
"metadata": {}, | |||
"nbformat": 4, | |||
"nbformat_minor": 0 | |||
MinRK
|
r11699 | } |