Jupyter

Open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text - Jupyter

Install

Jupyter Notebook or Lab or VS Code?

So most people like to use a combination of a dedicated IDE as well as JupyterLab. If you don’t you probably should… But it’s a bit annoying when we need both. Some people try to use the built-in jupyter notebook support from VSCode. But it sucks. - Remote Machines: JupyterLab + VSCode

There are 3 possibilities

sudo pip3 install notebook
jupyter notebook

Using Matplot

import matplotlib
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp')
plt.show()

Using Graphviz

from graphviz import Digraph
# Create Digraph object
dot = Digraph()

# Add nodes 1 and 2
dot.node('1')
dot.node('2')

# Add edge between 1 and 2
dot.edges(['12'])

dot
Written on July 18, 2020, Last update on January 7, 2023
repl python notebook jupyter vscode