Things look a little different right now
We're going to start by introducing a new programming environment: Jupyter Notebooks
Link to notes on Jupyter Notebooks
There are a few things that are really nice about Jupyter Notebooks:
# this is a code cell
# write python code as normal
print("hello world!")
x = 10
print(x ** 7)
hello world! 10000000
import matplotlib.pyplot as plt
def make_plot(title):
plt.plot([1, 2, 3, 4], [2, 3, 0, 5])
plt.title(title)
plt.show()
make_plot("first plot")
make_plot("second plot from other cell")
# scope and continuous kernel examples
x = 10
print(x)
10
y = 100
print("y's value:", y)
y's value: 100
print(y)
100
.html
, then that's an easy way to make it easy to show the contents of the notebook to people who don't have Jupyter Notebook installed..ipynb
filesDO NOT USE JUPYTER NOTEBOOKS FOR HW 8 IN DS 2000
(Consult with your DS 2001 instructor for their preference if you are interested in using jupyter notebooks for your DS 2001 project.)
In general, you'd like your notebooks structured as follows:
In each cell, from the top to the bottom