Jupyter Lab Configurations
To list all installed kernels in your JupyterLab system, open a terminal or command prompt and run
bashjupyter kernelspec list
-----------------------------------------------------------------------------------------------------------------------------
Creating new Kernel for specific purpose
1. Create and Activate a Virtual Environment
bash
python -m venv .venv
source .venv/bin/activate # On macOS/Linux
.venv\Scripts\activate # On Windows2. Install IPython Kernel in the Environment
bash
pip install ipykernel3. Register the Kernel
bash
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"- --name is the internal name used by Jupyter.
- --display-name is what you'll see in JupyterLab's kernel list.
4. Remove: jupyter kernelspec uninstall myenv
-----------------------------------------------------------------------------------------------------------------------------
Changing default settings of Linewrap and LineNumber in JupyterLab
bash
pip install --upgrade jupyterlab jupyterlab-git2. Enable the server extension
bash
jupyter server extension enable --py jupyterlab_git3. Ensure to select appropriate Python Environment where you intialized Git extension.
4. After restarting, you should see a Git tab/icon in the left sidebar.
Comments
Post a Comment