Datalore 2024.4 Help

Manage notebook environment using editor interface

Use the Environment tool to manage packages for your notebook in the editor.

Open the Environment tool

You have the following options:

  • Click the Environment icon on the left-hand sidebar.

  • Select Main menu | Tools | Environment.

  • Use the command palette.

Environment tool

Change the environment

  1. Click Change next to the current environment name.

  2. In the Change environment dialog, select another environment.

  3. Click the Apply and restart kernel button to close the dialog and apply the changes.

    Change environment dialog

Find and install packages

You can add packages to the environment of your notebook.

  1. On the Explore tab, type the package name in the search field and press Enter.

  2. After you get the search results, do one of the following:

    • Click the intended package to open it on a new tab. This allows you to view the package details and choose the version to install.

      View package to install
    • Hover over the package and click the Install icon to install it immediately.

      Install package icon
  3. After the package is installed, click restart kernel in the notification popup to complete the environment update.

Remove an installed package

  1. Go to the Installed tab.

  2. From the package list, hover over the one you want to remove and click the Remove icon.

    Remove package icon
  3. Click OK in the popup to confirm your action.

  4. After the package is removed, click restart kernel in the notification popup to complete the environment update.

Update an installed package

  1. Go to the Installed tab.

  2. From the package list, click the one you want to update. You can see its details on a new tab.

  3. Click the version picker and select another version from the list and click the Update button.

    Package version picker
  4. Click OK in the popup to confirm your action.

  5. After the package is updated, click restart kernel in the notification popup to complete the environment update.

Install Python packages from a Git repository

  1. Go to the Repositories tab.

  2. Click the Add new button. The Add repository dialog opens.

  3. Enter the repository URL and click the Check URL button.

  4. Select the branch you need and click the Add button.

    Install Python packages from Git repository
  5. After the package is installed, click restart kernel in the notification popup to complete the environment update.

Use initialization scripts

For some additional tools and dependencies, you can run initialization scripts right in the Datalore editor.

  1. Click init.sh. This will open the file in the editor pane.

  2. Edit the file by adding the required initialization script.

  3. Restart the machine: select Main menu | Run | Stop machine and click Restart machine in the popup in the lower right corner of the editor.

Last modified: 10 June 2024