Before you begin, make sure you have WSL, Docker, and NVIDIA drivers installed.
-
Follow the instructions here to install WSL.
-
Follow the instructions here to install Docker Desktop for Windows.
-
Follow the instructions here to install NVIDIA drivers.
Now we're ready to setup the Jupyter Server in the Docker container using WSL.
-
Start by cloning this repository to your local machine.
# Clone this repository git clone https://github.com/Auxority/tensorflow-jupyter.git -
Open your favorite terminal and run
wsl installto create a new WSL instance. Just follow the prompts and you should be good to go.# Create a new WSL instance wsl installNote: If you run into any issues, you can use
wsl --shutdownfollowed bywsl -landwsl --unregister <distro>to shutdown, list, and delete WSL instances respectively. -
Once you are in your WSL instance, navigate to this repository. Make sure to replace the path with the path to your repository. You can use the
/mnt/cprefix to access files on your C drive.# Navigate to the repository cd /mnt/c/Users/<username>/Documents/GitHub/tensorflow-jupyter -
Run
make initto initialize your.envfile.# Initialize your .env file make init -
Open the
.envfile you just created and configure your token there. You will need this token later. -
Run
make runto start the Docker container. This will take a while the first time you run it, but subsequent runs will be much faster.# Start the Docker container make run -
Once the container is running, you can access Jupyter Notebook by navigating to
http://localhost:8888?token={YOUR_TOKEN}in your browser. Make sure to replace{YOUR_TOKEN}with the actual token you set in your.envfile during step 5. -
You can now start coding! You can find some example notebooks in the
notebooksfolder.