Search code examples
pythonlinuxjupyter-notebookvirtual-environment

How to install and use Jupyter lab in a Python virtual environment on Linux?


i build up a virtual environment for Python on Linux:

enter image description here

I install some libraries, which all look fine. Then I try to install Jupyter lab like this:

enter image description here

......

enter image description here

I am not good at Linux stuff. So I am not even sure if Jupyterlab is installed or not.

But I just try Jupyter lab in the virtual environment, then I have the following information:

enter image description here

Looks like lunux automatically allocate Jupyter lab to this path. But because the system just give me very small space under here, so Jupyterlab is actually not installed.

So, how can I install Jupyter lab in the virtual environment?

I am a beginner at Linux.


Solution

  • Try: pip install jupyterlab within your virtual env, then type jupyter-lab to start the server.