Python Jupyter memory quirk: Deleting variables doesn’t always free memory! Use df.head() instead of df to keep big values out of Jupyter’s Out dict.
About a month ago, I started my “Python standard library video explainer series” on YouTube. My goal is to walk through the Python standard library, one little bit at a time — explaining it to Python developers, and also discovering (for myself) the many gems that exist in there, but which I’ve never had a…
Bottom line: To run a Jupyter notebook server your students can log into, install it with pip3 install -U jupyter on a cheap Linux VPS, run jupyter notebook –generate-config, then set open_browser = False and ip = ‘0.0.0.0’ in jupyter_notebook_config.py. Launch it with nohup jupyter notebook and browse to port 8888. Nearly every day, I…