Moving a Notebook Session Between Compartments

Move a notebook session in Data Science to a different compartment.

For example, you might want to move a notebook session to promote it from a development compartment to a production compartment, or to change the visibility of the notebook session.

    1. Use the Console to sign in to a tenancy with the necessary policies.
    2. Open the navigation menu and click Analytics & AI. Under Machine Learning, click Data Science.
    3. Select the compartment that contains the project with the notebook session.

      All projects in the compartment are listed.

    4. Click the name of the project.

      The project details page opens and lists the notebook sessions.

    5. Click the name of the notebook session that you want to move.

      The notebook session details page opens.

    6. Click Move resource.
    7. Select the new compartment for the notebook session, and then click Move resource.
    A notification is displayed indicating that the notebook session resource is moved to the new compartment successfully. You might notice the notebook session status change to Moving. After the move is completed successfully, the notebook session status changes back to Active.
  • Use the oci data-science notebook-session change-compartment command and required parameters to change the compartment:

    oci data-science notebook-session change-compartment --compartment-id <compartment-id>.-c [<text>].. [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Use the ChangeNotebookSessionCompartment operation to change the compartment.