diff --git a/lectures/about_py.md b/lectures/about_py.md index 03aad165..2c80dde1 100644 --- a/lectures/about_py.md +++ b/lectures/about_py.md @@ -23,10 +23,6 @@ kernelspec: # About Python -```{contents} Contents -:depth: 2 -``` - ```{epigraph} "Python has gotten sufficiently weapons grade that we don’t descend into R anymore. Sorry, R people. I used to be one of you but we no longer descend @@ -255,10 +251,8 @@ Its features include, among many other things: Here's some example code that generates and plots a random graph, with node color determined by the shortest path length from a central node. ```{code-cell} ipython -%matplotlib inline import networkx as nx import matplotlib.pyplot as plt -plt.rcParams['figure.figsize'] = (10,6) np.random.seed(1234) # Generate a random graph diff --git a/lectures/debugging.md b/lectures/debugging.md index b798840e..ea40fc29 100644 --- a/lectures/debugging.md +++ b/lectures/debugging.md @@ -23,10 +23,6 @@ kernelspec: ```{index} single: Debugging ``` -```{contents} Contents -:depth: 2 -``` - ```{epigraph} "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, @@ -61,10 +57,8 @@ Here we'll focus on Jupyter Notebook and leave you to explore other settings. We'll need the following imports ```{code-cell} ipython -%matplotlib inline import numpy as np import matplotlib.pyplot as plt -plt.rcParams['figure.figsize'] = (10,6) ``` (debug_magic)= diff --git a/lectures/functions.md b/lectures/functions.md index 25a08afc..993d0765 100644 --- a/lectures/functions.md +++ b/lectures/functions.md @@ -23,10 +23,6 @@ kernelspec: ```{index} single: Python; User-defined functions ``` -```{contents} Contents -:depth: 2 -``` - ## Overview Functions are an extremely useful construct provided by almost all programming. diff --git a/lectures/getting_started.md b/lectures/getting_started.md index 484cff04..d5645794 100644 --- a/lectures/getting_started.md +++ b/lectures/getting_started.md @@ -18,6 +18,8 @@ kernelspec: ``` + +