Help Center/ DataArts Studio/ User Guide/ DataArts Factory/ Notebook Development/ Installing External Libraries on a Notebook Instance
Updated on 2025-04-28 GMT+08:00

Installing External Libraries on a Notebook Instance

Multiple environments such as Jupyter and Python have been installed on DataArts Studio notebook instances, including MRS(PySpark), DLI Spark(PySpark), DLI Spark(Scala), and Python. You can use pip install to install external libraries on notebook instances.

Installing an external library on a notebook instance

You can use JupyterLab to install Shapely in the python-3.7.10 environment.

  1. Open a notebook instance and access the Launcher page.
  2. In the Notebook area, access a kernel, for example, python-3.7.10, and create an IPYNB file.
  3. In the new notebook instance, enter the following command in the code input bar:
    !pip install Shapely