35 lines
1.4 KiB
Markdown
35 lines
1.4 KiB
Markdown
|
# Jupyter
|
||
|
|
||
|
|
||
|
Ah yes jupyter notebooks. That thing that you thought was only used for data science and not real programmers because you never really used it in your undergrad or even masters CS classes and then realized that maybe you really aren't a real programmer then and now here you are.
|
||
|
|
||
|
|
||
|
Because it has widespread use and you should probably know this stuff.
|
||
|
|
||
|
[Jupyter shortcuts ](https://nocomplexity.com/documents/jupyterlab/keyboardshortcuts.html)
|
||
|
|
||
|
You know that you can run jupyter straight up inside of Obsidian right?
|
||
|
|
||
|
Install [jupyter for obsidian](https://github.com/tillahoffmann/obsidian-jupyter). The python interpreter should be set to the path ```/usr/bin/python```
|
||
|
|
||
|
```jupyter
|
||
|
import numpy as np
|
||
|
from matplotlib import pyplot as plt
|
||
|
|
||
|
x = np.linspace(0,1)
|
||
|
y = np.exp(-x) * np.sin(4 * np.pi * x)
|
||
|
plt.plot(x,y)
|
||
|
pass
|
||
|
|
||
|
```
|
||
|
|
||
|
|
||
|
|
||
|
[Extensions](https://medium.com/data-for-everyone/best-extensions-for-jupyterlab-185ab5f3e05c) on [extensions](https://neptune.ai/blog/jupyterlab-extensions-for-machine-learning) on extensions.
|
||
|
|
||
|
---
|
||
|
|
||
|
Ways to do things:
|
||
|
- convert a[ .ipynb to .py ](obsidian://open?vault=Coding%20Tips&file=convert%20a%20.ipynb%20to%20.py)
|
||
|
- alternatively, some other things to try out may be the [starboard notebook ](https://github.com/gzuidhof/starboard-notebook)
|
||
|
- you can actually even [create a dashboard ](https://mljar.com/blog/dashboard-python-jupyter-notebook/)within Jupyter!
|