Make Jupyterlab environment without anaconda

Background

These days, anaconda becomes not free, In company I use jupyter lab for data extraction and summary as an Engineer Manager. (For python, interactive programming is useful)

Actually, for me anaconda is too many for me, so paid license is not reasonable. I just want to use jupyter lab. This is simple way to prepare Jupyterlab only

How?

I use following

  • virtual env

In Python, we can use virtual env to create multiple python version to test independent. Can use different python version in different directly. This is powerful. To use this,

Let’s start

This is author’s environment

  • Mac
  • Python 3.11.7
python3 -m venv data

data : This is virtual environment name, you can use any name but please remember

After above command, the directory is created name /data

source data/bin/activate

This is important command, to activate virtual env, need above command. data is your name, bin/activate is shell script to activate.

Once you success, you can see indicator in prompt
(data) (base)

Now, Virtual env is ready. (Virtual env is active only directly level, you want to use different directly, you need to create another virtual env)

Install Jupyter lab

OK. Next, you need to install Jupyter lab under this virtual env

pip install jupyerlab

You can install

Let’s start jupyterlab

jupyter lab

jupyter and lab should be separeted

Now, automatically open loalhost:8888 with Jupyterlab

Next Time

When you shutdown PC, and come to again same directly

  1. Activate virtual Env
  2. Start jupyterlab
source data/bin/activate
jupyter lab

Enjoy!!

コメント

タイトルとURLをコピーしました