Skip to content

Guide to setup jupyter on windows with extensions and different kernels for different projects

Notifications You must be signed in to change notification settings

ambrustorok/jupyter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Setting Up Jupyter on Windows

This guide provides step-by-step instructions for setting up Jupyter on Windows, including installing extensions and configuring different kernels for various projects.

1. Creating a Python Virtual Environment

First, create a Python virtual environment with the following command:

python -m venv kernel_2024_03_22

2. Activating the Virtual Environment

Activate the virtual environment in Windows using:

.\kernel_2024_03_22\Scripts\activate

3. Adding and Removing Kernels

Adding a New Kernel

To add your virtual environment to the Jupyter kernel, follow these steps:

Removing a Kernel

If you need to remove a kernel, follow these instructions:

4. Editing Default Terminal

Modify the default terminal as follows:

5. Running Jupyter Notebook on Startup

Configure Jupyter Notebook to run on startup by following these steps:

  1. Press Windows + R.
  2. Type taskschd.msc and press Enter.
  3. Click on Task Scheduler Library.
  4. Click Create Task.
  5. Set the name and configure triggers to "At log on" for your user.
  6. Set actions to execute start_jupyter.bat.

start_jupyter.bat File

The start_jupyter.bat file contains:

@echo off
cd D:\OneDrive\Projects\virtualenvs\kernel_2024_03_22
call D:\OneDrive\Projects\virtualenvs\kernel_2024_03_22\Scripts\activate
jupyter notebook

6. Custom Location for Config File

Specify a custom location for the Jupyter config file using an environment variable:

  • Env variable: JUPYTER_CONFIG_DIR
  • Path: D:\OneDrive\Projects\virtualenvs

This command exports the environment variable JUPYTER_CONFIG_DIR with the specified path.

setx JUPYTER_CONFIG_DIR D:\OneDrive\Projects\virtualenvs

7. Syntax Highlighting Issues

About

Guide to setup jupyter on windows with extensions and different kernels for different projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published