Cleaned up send_command and launch_notebook