Closed mattagape closed 5 years ago
Writing Python in text files:
Loading Our Package: The last paragraph mentions .pyc
files, but there are none in the notebook output. We could change it to "If you see any files ending in .pyc, those are ..."
The Python Path
print(sys.path[:-3]
(and also update the path we're appending); as it is, it looks like something that was done interactively
It says "You can also maintain your library code in a Notebook, and use %%writefile to create your library." That sounds like a recipe for disaster to me, given what we know about the non-reproducibility of notebooks.
To demonstrate good programming practice, the example code functions should have comments explaining what arguments they are expecting, and their types.