Skip To Content

Import custom modules from a registered data directory

ArcGIS Notebook Server allows notebook authors to import custom Python modules from registered data directories. With this process, notebook authors can more easily manage frequently updated custom modules.

Import a custom module from a registered data directory

Follow the steps below to import a custom module from a registered directory:

  1. Register a data directory in ArcGIS Notebook Server Manager.

    Note:
    Ensure that the directory meets the data directory requirements and that the directory contains the custom Python modules.

  2. Delete any existing interactive notebook containers.
  3. Open a notebook in the notebook editor.
  4. Click Files to open the Files pane in the notebook editor.

    The registered data directory should be listed as /arcgis/directories.

  5. Import the new path:

    import sys
    sys.path.append('/arcgis/directories/')