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