Jupyter Lab Configurations

To list all installed kernels in your JupyterLab system, open a terminal or command prompt and run

bash
jupyter 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 Windows
2. Install IPython Kernel in the Environment
bash
pip install ipykernel
3. 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



Inclusion of Git in JupterLab:

1. Install the extension
bash
pip install --upgrade jupyterlab jupyterlab-git

2. Enable  the server extension
bash
jupyter server extension enable --py jupyterlab_git

3. 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

Popular posts from this blog

Understanding Titanic Survival Predictions with Decision Trees

From Raw Logistics Data to Business Insights: An Excel Analytics Project (RFM Analysis)

Unable to access the PaloAlto VM image via HTTPS