Refactored launch_notebook.py