Data Science Jumpstart with 10 Projects Transcripts
Chapter: Welcome to the Course
Lecture: Installing Jupyter in a Virtual Environment

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In this video, I'm going to show you how to set up a local environment so you can run Jupyter locally and access the notebooks.
0:07 I've checked out my repo into a directory and what I need to do is make a virtual environment.
0:13 I'm going to demo this from a Unix machine, but if you are running this from Windows, you will need to create a virtual environment on Windows.
0:22 The commands to create the virtual environment are similar. The command to activate the virtual environment is different in Windows.
0:28 So here's how you would do it on a Unix platform, Mac or Linux. I'm going to say python3-mvenv and then the name of the virtual environment.
0:42 I'm just going to make it in the local directory called env. At this point, I need to activate this on Unix systems.
0:49 I'm going to say source-env-activate and you can see that my prompt has changed. If I was on Windows, I would say env-scripts-activate.
1:02 There's a batch command that I would run to do that. At this point, all I need to do is install my libraries.
1:12 If you look in the directory here, there's a requirements.txt file. I'm going to say pip install-r requirements.txt.
1:27 After that is done, I should have Jupyter. I can say on Unix systems, which Jupyter and that tells me that I've installed this in
1:36 my virtual environment. On Windows, you would say where Jupyter. At this point, I'm going to launch Jupyter and say Jupyter Space Lab.
1:47 At this point, you should see something like this. Here are the notebooks.
1:51 We can click on student01 and you can come down here and you can run this cell. You can see that that worked. you


Talk Python's Mastodon Michael Kennedy's Mastodon