open existing directory in python jupyter notebook code example Example: find root directory of jupyter notebook import os os.getcwd()