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. On the Projects list page, select the project that contains the notebook sessions that you want to work with. If you need help finding the list page or the project, see Listing Projects.
    2. On the project details page, select Notebook sessions.
      All notebook sessions in the selected project are displayed in a table.
    3. Find the notebook session that you want to work with.
    4. From the Actions menu (three dots) for the project, select Move resource.
    5. In the Move resource panel, select the destination compartment.
    6. Select 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 parameters and values for CLI commands, see the CLI Command Reference.

  • Use the ChangeNotebookSessionCompartment operation to change the compartment.