doc-exports/docs/modelarts/umn/modelarts_21_0069.html
Beibei edf86a8ae7
ModelArts GA UMN 06052022 from R&D (#5)
ModelArts GA UMN 06052022 from R&D

R&D provided a new version of the ModelArts User Manual in May 2022.
Depends-On: #11

Reviewed-by: Artem Goncharov <Artem.goncharov@gmail.com>
2022-05-23 08:19:57 +00:00

2.8 KiB

Should I Access the Python Environment Same as the Notebook Kernel of the Current Instance in the Terminal?

The following uses the TensorFlow-1.8 engine as an example. The operations on other engines are similar. You only need to replace the engine name and version number in the commands.

  1. Open a notebook instance.
  2. On the displayed Jupyter dashboard, click New and select Terminal from the shortcut menu.
  3. The README file exists in the user directory on the Terminal. The file describes how to switch different Python environments.
    • Enter the following command in the code input bar to search for a virtual environment name:

      cat /home/ma-user/README

    • Enter the following command in the code input bar to activate different environments: For example, for the TensorFlow-1.8 engine in the Python2 environment, you can replace ** with TensorFlow-1.8 in the command line. You can replace it with the engine of another version. Example:

      source /home/ma-user/anaconda2/bin/activate **