Skip to content

Commit 0977200

Browse files
authored
Update 3.5 My Virtual Environments Workflow.txt
1 parent 2a9e9a0 commit 0977200

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

transcripts/3.5 My Virtual Environments Workflow.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
00:00 There are a few command line tricks you can use 
22
00:03 to make your life easier when you're working with these virtual environments. 
3-
00:06 So I want to show you a quick walkthrough the virtual env setup 
4-
00:10 or the virtual env workflow, that I use personally for working on Python projects. 
3+
00:06 So I want to show you a quick walkthrough the virtualenv setup 
4+
00:10 or the virtualenv workflow, that I use personally for working on Python projects. 
55
00:15 So I am in a fresh terminal session here and let's pretend I want to work
66
00:20 on a project called test project, the one we created earlier. 
77
00:24 So the first thing I would do is to switch into the project folder, 
@@ -29,12 +29,12 @@
2929
01:51 is it's going to deactivate the previous virtual environment 
3030
01:54 and then activate the new one. 
3131
01:56 So I don't have to type deactivate first, and then of course,
32-
02:00 I could do m work and just deactivate the virtual environment again. 
32+
02:00 I could do my work and just deactivate the virtual environment again. 
3333
02:04 So I am using these ae and de shortcuts or aliases to make it a little bit easier 
3434
02:09 to work with virtual environments from the command line. 
3535
02:12 And now I am going to show you how those work behind the scenes. 
3636
02:15 So what I have done here is I've modified the config file from my shell, 
37-
02:20 I am using bash so this would be bash profile. 
37+
02:20 I am using bash so this would be ~/.bash_profile
3838
02:23 And I've added these two lines here, that configure an ae and a de alias.
3939
02:28 Here is what the ae alias does. 
4040
02:32 It tries to deactivate any virtual environments that I am already in, 
@@ -48,4 +48,4 @@
4848
03:01 I just type de and I leave the virtual environment. 
4949
03:04 And this makes working with virtual environments just a little bit smoother 
5050
03:08 so this is something you could try out and see 
51-
03:11 if you want to incorporate that into your own workflow. 
51+
03:11 if you want to incorporate that into your own workflow. 

0 commit comments

Comments
 (0)