admin管理员组

文章数量:1124388

I'm developing OSS widget based library that are unfortunately not 100% compatible with the current implementation of jupyter in VSCode so when i'm using a codespace I'm force to use a jupyterlab interface. Here is my devcontainer configuration:

{
  "name": "Python 3",
  "image": "mcr.microsoft/devcontainers/python:1-3.11-bullseye",
  "features": {
    "ghcr.io/devcontainers/features/python:1": {
      "installJupyterlab": true
    },
} 

When I open The codespace in my browser I get a perfectly fine jupyter interface but I don't manage to add extra libs in the environment.

Going into the terminal I canrun an install command like pip install earthengine-api:

But then this lib is not available to the example notebook even if I restart the kernel:

when I look at the kernel themselves I don't understand which one I should select to see the python I'm interacting with in the terminal:

Anyone have suggestion to how I should be adding these extra libs ?

PS: installing them directly from the notebook for me is a big no as its scope will be narrowed down to a single notebook and I have multiple ones.

本文标签: jupyter labhow to add extra lib to my notebook environment in a jupyterlab codespaceStack Overflow