Mac M1 and above chips use conda to install JupyterLab on Ubuntu

Mac M1 and above chips use conda to install JupyterLab on Ubuntu

1. Download the latest version of the Miniconda installation package:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh

2. Run the Miniconda installer and follow the on-screen prompts:

bash Miniconda3-latest-Linux-aarch64.sh

3. Close and reopen the terminal.

4. Disable conda's automatic activation of the base environment with the following command:

conda config --set auto_activate_base false

5. Activate the base environment:

conda activate base

6. Use conda to install the required Python libraries:

conda install matplotlib pandas scipy sympy
conda install jupyter

7. Install JupyterLab's spell checker extension from the conda-forge community repository:

conda install jupyterlab-spellchecker -c conda-forge

8. Install the Octave kernel:

conda install octave_kernel -c conda-forge

9. Install the C++ kernel (xeus-cling):

conda install xeus-cling -c conda-forge

After completing the above steps, you will have a complete JupyterLab environment, which includes Python libraries, spell checker extensions, and Octave and C++ kernels. You can now start JupyterLab with the following command:

jupyter lab

The browser will then automatically open a new tab displaying the JupyterLab interface. From here, you can create and edit Jupyter notebooks, run Python, Octave, and C++ code, and more.

Guess you like

Origin blog.csdn.net/weixin_47884711/article/details/130003069