Last active
April 24, 2022 23:43
-
-
Save wware/1014bd2ac15f21af374ace4dd575288a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
cells: [ | |
{ | |
cell_type: "markdown", | |
metadata: { }, | |
source: [ | |
"# This is a test | |
", | |
"Let's do some Markdown. | |
", | |
"Then some python. | |
", | |
"- Here is a list. | |
", | |
"- With some stuff in it. | |
", | |
" | |
", | |
"Pythagoras said $a^2 + b^2 = c^2$ and that's good enough for me. Let's try some syntax highlighting. | |
", | |
"```yaml | |
", | |
"--- | |
", | |
"foo: "a few words" | |
", | |
"quux: | |
", | |
" - first | |
", | |
" - second | |
", | |
" - third | |
", | |
"``` | |
", | |
"That was YAML. Let's try Prolog. | |
", | |
"```prolog | |
", | |
"predicate(X, Y) :- xyzzy(X), e(Y). | |
", | |
"```" | |
] | |
}, | |
{ | |
cell_type: "code", | |
execution_count: 3, | |
metadata: { }, | |
outputs: [ | |
{ | |
name: "stdout", | |
output_type: "stream", | |
text: [ | |
"5.0 | |
" | |
] | |
} | |
], | |
source: [ | |
"print((3.0**2+4.0**2) ** .5)" | |
] | |
}, | |
{ | |
cell_type: "code", | |
execution_count: 4, | |
metadata: { }, | |
outputs: [ | |
{ | |
name: "stderr", | |
output_type: "stream", | |
text: [ | |
"INFO:foobar:hello | |
" | |
] | |
} | |
], | |
source: [ | |
"import logging | |
", | |
"logging.basicConfig(level=logging.INFO) | |
", | |
"lg = logging.getLogger("foobar") | |
", | |
"lg.info("hello")" | |
] | |
}, | |
{ | |
cell_type: "markdown", | |
metadata: { }, | |
source: [ | |
"One cool thing is that we can run small shell scripts. That's **pretty slick**. One thing I'm thinking of doing is baking _Jupyter_ into the docker image I'm creating at work, so that i can use it to run experiments and document stuff in the worker environment. I'll need to think a little about how to get the `ipynb` files out of the worker machines into the git repository." | |
] | |
}, | |
{ | |
cell_type: "code", | |
execution_count: 1, | |
metadata: { }, | |
outputs: [ | |
{ | |
name: "stdout", | |
output_type: "stream", | |
text: [ | |
"/storage/emulated/0 | |
" | |
] | |
} | |
], | |
source: [ | |
"%%sh | |
", | |
"pwd" | |
] | |
}, | |
{ | |
cell_type: "markdown", | |
metadata: { }, | |
source: [ | |
"\begin{align} | |
", | |
"\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ | |
", | |
"\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ | |
", | |
"\nabla \cdot \vec{\mathbf{B}} & = 0 | |
", | |
"\end{align}" | |
] | |
} | |
], | |
metadata: { | |
kernelspec: { | |
display_name: "Python 3 (ipykernel)", | |
language: "python", | |
name: "python3" | |
}, | |
language_info: { | |
codemirror_mode: { | |
name: "ipython", | |
version: 3 | |
}, | |
file_extension: ".py", | |
mimetype: "text/x-python", | |
name: "python", | |
nbconvert_exporter: "python", | |
pygments_lexer: "ipython3", | |
version: "3.9.7" | |
} | |
}, | |
nbformat: 4, | |
nbformat_minor: 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment