Happy Friday everybody. I wanted to do something simple today and just show you my setup for vsc/python. This assumes you have Python already installed. Have a great weekend!
hi Brad, I sent you an email to the address linked to your youtube. Could you please read it and give me a little advice. I would post it here but there is some private stuff in there
For those using windows : Creating a virtual environment py -3 -m venv venv Activating virtual environment venv\Scripts\activate De-activating virtual environment deactivate Also if you have problems activating the virtual environment. Run Windows PowerShell in Administrator and run Set-ExecutionPolicy -ExecutionPolicy Unrestricted
'.' is not recognized as an internal or external command, operable program or batch file. is what I'm getting when I run the command to activate the virtual environment
"Old-noob" (some studies 20 yrs ago, Borland c) old hand@Linux, so this IDE/NOTIDE but very advanced non-terminal text editor, VSCode + plugins gig opened up a new world..bloody amazing - your video shared SO much cool stuff! Beginning Python now..
Dude, thank you SO MUCH! This video was exactly what I needed. At work I'm learning to code in Python, but the whole env is already set-up (with pytest, flake8, kite, ...) No one could show me how to set up a similar environment on my personal machine. Over the last few hours I've tried PyCharm (horrible to set up!), IDLE, ... the works, but to no avail. Then I found this video, and it fits my situation 100%. Again, so damn grateful! Instant sub :-)
Excellent video. Added some to my mediocre VSC skills. At this date, however, Kite seems to be off-line and Python Snippets behave oddly. Not complaining. Very much worth the time. Thank you.
Brad thank you so much for making this video I didn't have any idea how to use debugger thanks for teaching me how to use debugger and AREPL extension is really cool saves lots of time!!
I was about to start with python, and suddenly out of nowhere, this video! This is giving me a head start for sure. Liked the fact that you've included testing also. Can you make a video on unit testing with react? Jest/enzyme, react testing library or whatever you prefer.
The term 'python' is not recognized as the name....... For those of you that have this error. instead of typing "python -m venv venv" you replace the python word to just py "py -m venv venv"
If you are using windows and you ran the command in the terminal and get the error "cannot be loaded because running scripts is disabled on this system", I recommend doing the following (it worked for me): 1. Run Windows Powershell 2. Run command Get-ExecutionPolicy -List to see if you have CurrentUser and/or LocalMachine as "restricted". (This prevents the running of scripts). 3. Change CurrentUser to RemoteSigned by running command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser. Press Enter and type 'Y' for Yes 4. Change LocalMachine to AllSigned: Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope LocalMachine 5. Run Get-ExecutionPolicy -List again to ensure they are reset. It should work now when you enter py -3 -m venv venv and venv\Scripts\activate in VS terminal. 😄 Go to Microsoft and search "about_Execution_Policies" for more instructions
For those of you following along with the exact code here, I typed out the contents of the JSON Array from the beginning (here): [{"id":1, "text": "Item 1"}, {"id":2, "text": "Item 2"}]
Can we make a dashboard designs. And can you please share a small project as a challenge every week. It will be great help as well as practice. Thankful ❤
exactly, the video i was searching and u made it..Was actually searching your previous videos to c if there is any new one with Python and VScode.. I see it now
Great tutorial Brad. Thank you. I feel like this was ahead of my learning level which gives me a bit of home work to do. Also there are a few things different on windows but worked them out along the way. Firstly to create and activate virtual environment. Creating py -3 -m venv venv and to activate just ./venv/Scripts/activate other than that most other things are the same. Thanks for your helpful tutorials. Also if you could do a favor to future viewers please add the windows differences in comments or mention it.
Take note, when you work with portable versions of Visual studio code and Python you will have to browse for the interpreter. Do this in the following way: 1. Open a Python file in Visual Studio Code 2. Select the language mode in the bottom right corner (it not done yet). 3. Click on "Select Python Interpreter" in the bottom left corner. In this video it is where you see the words "python 3.8.1 64-bit" 4. A "Select interpreter" window will appear at the top. Click on "Enter interpreter path…" 5. Browse for "python.exe" which is normally in the folder "python-x.y.z.amd64"
this video was so helpful! And frankfly I just needed the first few minutes, I was having trouble with modulenotfound when "pip install prettytable" but when I install the virtual environment and access it and install there, then it works. This is my first time doing so do you have a video explaining the logic of virtual environments and why they're needed to install packages? By the way, all the extensions here are super useful!
Very decent video, keep it up Brad. I would ask if you may do the same for setting up Django in VS Code plus recommended extensions. One love from Tanzania.
Now you can also run your Jupyter notebook directly from VS Code; it's pretty dope, and it's included in the Python plugin already. No need to use Ananconda for Data Science anymore. I prefer to use VSCode for all my hobby projects. But for more involved heavy coding that I do at work, when I have multiple microservices, I switch to a JetBrains editor.
Hello everyone .. I was just going through this video (on a Mac, OS11.5.2), and at the beginning, after installing the Python extension, in order to get the Virtual Environment to recognize, I had to quit and re-open VSCode. Took a few minutes of digging to get it to work, so I thought I'd leave a tip ;)
I always see comments like ' I was just searching for this' but I was LITERALLY just searching for this, just out of curiosity and you have a new vid on it. Amazing
This was awesome.. Thanks I really needed this for a current project. Quick question.. can you show or explain how to display report of the pytest test runs ? Thanks
Everyone is just explaining how to debug on one single file. No one has posted when there are multiple files or dependencies. Please upload one if you have that
FYI: Git bash for some reason throws "permission denied" to python3 commands, so you might wanna switch to regular windows cmd as a default terminal for your vscode.
You show code snippets as part of the Microsoft Python extension but I do not think that is included in the MS Python extension. Can you share how you enabled Python code snippets?
For some reason I don't see snippet suggestions after installing the python extension. Any ideas on how to resolve this issue? Looks like snippets should be enabled in the recomendations.
As a beginner I don't find this video helpful at all. Maybe it's too advanced for me but when you got to "we need to create a virtual environment" I imminently had questions like "How are environments defined here, which one are we in now, what is a virtual one as opposed to another type, and why do we need a virtual one right now?"
interesting fact: the python extension had 16 million downloads at the time of this video, and after 1 year and a half it has more than double (37 mil)
Hi Brad! I'm wondering of what do you think about machine learning stuffs in JavaScript like tensor flow,brain.js do you think it will become more a must learned skill in frontend jobs in near future? I just get comfortable with vanilla JavaScript and Im interested to learn these libraries, do you think it's a bad idea to jump to js machine learning from vanilla javascript? or are these libraries even practical to learn for frontend positions?
Happy Friday everybody. I wanted to do something simple today and just show you my setup for vsc/python. This assumes you have Python already installed. Have a great weekend!
hi Brad, I sent you an email to the address linked to your youtube. Could you please read it and give me a little advice. I would post it here but there is some private stuff in there
Please make adavance mongodb ,udemy course,
It's more helpful
Hollywood BS ill check. Im not ignoring you, I have a jam packed inbox
@@TraversyMedia Thank you
@@TraversyMedia Wow very helpful. 👌
For those using windows :
Creating a virtual environment
py -3 -m venv venv
Activating virtual environment
venv\Scripts\activate
De-activating virtual environment
deactivate
Also if you have problems activating the virtual environment. Run Windows PowerShell in Administrator and run
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
'.' is not recognized as an internal or external command,
operable program or batch file. is what I'm getting when I run the command to activate the virtual environment
@@elioabihabib2498 use backslash
@@shazam314 in place of the '.'
@@elioabihabib2498 changing / to \ didn't solve the issue?
@@shazam314 I was asking where to put the backslash.
"Old-noob" (some studies 20 yrs ago, Borland c) old hand@Linux, so this IDE/NOTIDE but very advanced non-terminal text editor, VSCode + plugins gig opened up a new world..bloody amazing - your video shared SO much cool stuff! Beginning Python now..
Dude, thank you SO MUCH! This video was exactly what I needed. At work I'm learning to code in Python, but the whole env is already set-up (with pytest, flake8, kite, ...) No one could show me how to set up a similar environment on my personal machine. Over the last few hours I've tried PyCharm (horrible to set up!), IDLE, ... the works, but to no avail. Then I found this video, and it fits my situation 100%. Again, so damn grateful! Instant sub :-)
I found it's Brad without even checking the channel name. This is the first time I visit his channel. Effect of Udemy.. Great lecturer.
Excellent video. Added some to my mediocre VSC skills. At this date, however, Kite seems to be off-line and Python Snippets behave oddly. Not complaining. Very much worth the time. Thank you.
Why did i wait 12 months after starting to code to watch this!! *sobbing in the corner.....* GAME CHANGER !!!!
No joke
I was unable to run .py file today and you upload this one.
Thanks a million Brad
Brad thank you so much for making this video I didn't have any idea how to use debugger thanks for teaching me how to use debugger and AREPL extension is really cool saves lots of time!!
I was about to start with python, and suddenly out of nowhere, this video! This is giving me a head start for sure. Liked the fact that you've included testing also.
Can you make a video on unit testing with react? Jest/enzyme, react testing library or whatever you prefer.
The term 'python' is not recognized as the name.......
For those of you that have this error.
instead of typing "python -m venv venv" you replace the python word to just py
"py -m venv venv"
worked for me
Thanks, you helped me get through that hurdle. Now however, the source command for venv activate is not working for me
@@rafaelfernandez725 maybe manually create a venv folder in your python projects folder(im new, i could be wrong.)
after many many many hours and re-installs of crap vs code libraries I'm finally able to use my virtual environment. Thank you!
The moment you smile when RUclips notifies there is a new video from Traversy Media 🤜
This is the best introduction on vscode setup for Python that I can find :) Thank you for the good work!
If you are using windows and you ran the command in the terminal and get the error "cannot be
loaded because running scripts is disabled on this system", I recommend doing the following (it worked for me):
1. Run Windows Powershell
2. Run command Get-ExecutionPolicy -List to see if you have CurrentUser and/or LocalMachine as "restricted". (This prevents the running of scripts).
3. Change CurrentUser to RemoteSigned by running command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser. Press Enter and type 'Y' for Yes
4. Change LocalMachine to AllSigned: Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope LocalMachine
5. Run Get-ExecutionPolicy -List again to ensure they are reset.
It should work now when you enter py -3 -m venv venv and venv\Scripts\activate in VS terminal. 😄
Go to Microsoft and search "about_Execution_Policies" for more instructions
I am LITERALLY just getting back into Python after a long break from it and just setting it up on my new laptop. You're the best!
Good set up of code. Amazing how there are so many of these vids and your the only one who has a complete set up - go figure 😊
For those of you following along with the exact code here, I typed out the contents of the JSON Array from the beginning (here):
[{"id":1, "text": "Item 1"}, {"id":2, "text": "Item 2"}]
This video is perfect timing. I'm starting Python on Monday at my code bootcamp. Thanks Brad!
This is the first time I am learning Python and it is really helpful
Just found this page, thank you for the setup tut in VSC! Really helped me a lot as a newcomer to python
Thank you, I'm just starting to learn python and I have no clue how to use any coding programs so this was helpful.
This is a cool video, interesting how no matter how simple and intuitive there will always something to fix.
Damn. You read my mind. Today I was thinking: Hmm i need to figure out how to code python on VSCODE.
Can we make a dashboard designs.
And can you please share a small project as a challenge every week. It will be great help as well as practice.
Thankful ❤
exactly, the video i was searching and u made it..Was actually searching your previous videos to c if there is any new one with Python and VScode.. I see it now
Great tutorial Brad. Thank you. I feel like this was ahead of my learning level which gives me a bit of home work to do. Also there are a few things different on windows but worked them out along the way. Firstly to create and activate virtual environment. Creating py -3 -m venv venv and to activate just ./venv/Scripts/activate other than that most other things are the same. Thanks for your helpful tutorials. Also if you could do a favor to future viewers please add the windows differences in comments or mention it.
Also had to set my powershell policy to unrestricted to run the scripts a bit of work but figured it out along the way.
@@CDitfort thank you, was having some problems with the venv part but your comment saved me haha, much appreciated
OMG, who is this guy? THANK YOU SO MUCH for making this soooooo easy for me!!
I am relatively new to Python and this information was really useful
Take note, when you work with portable versions of Visual studio code and Python you will have to browse for the interpreter. Do this in the following way:
1. Open a Python file in Visual Studio Code
2. Select the language mode in the bottom right corner (it not done yet).
3. Click on "Select Python Interpreter" in the bottom left corner. In this video it is where you see the words "python 3.8.1 64-bit"
4. A "Select interpreter" window will appear at the top. Click on "Enter interpreter path…"
5. Browse for "python.exe" which is normally in the folder "python-x.y.z.amd64"
thank you
Brad has traversed so many arrays he became Traversy 😛🙃
I like that ; )
Kite does not work
Dude this is so helpful! thanks I think will stop using mostly Jupyter now
Loved the AREPL!
Thanks Brad
this video was so helpful! And frankfly I just needed the first few minutes, I was having trouble with modulenotfound when "pip install prettytable" but when I install the virtual environment and access it and install there, then it works. This is my first time doing so do you have a video explaining the logic of virtual environments and why they're needed to install packages?
By the way, all the extensions here are super useful!
Very decent video, keep it up Brad. I would ask if you may do the same for setting up Django in VS Code plus recommended extensions. One love from Tanzania.
I just started your udemy course today and this video is very helpful :-)
New to Python and found this video to be immensely helpful, thank you!
Thank you for high quality introduction!
Can I ask a question. Why didn't I get a snippets in the prompt when I type. Thank you, Sir
really helpful introduction to those tools!
Mr Traversy you are a lifesaver. I really needed this!
Thanks sir i am newbee it helps me lot
In this last month of quarantine I've watched your videos which saved my ass at work. Thanks
Now you can also run your Jupyter notebook directly from VS Code; it's pretty dope, and it's included in the Python plugin already. No need to use Ananconda for Data Science anymore. I prefer to use VSCode for all my hobby projects.
But for more involved heavy coding that I do at work, when I have multiple microservices, I switch to a JetBrains editor.
You completely skipped the part where you open a new python project.
This. Experts should be banned from writing basic-level tutorials, because they have no idea what new learners actually require.
Helpful, must have extensions
I can't believe, it is so intuitive
Great tutorial for VSCode setup, you are awesome Brad thank you!
You read my mind Brad! This is exactly what I needed!
Really waited for this video teacher.
right on time when I need it... I'm so used to VSCode. it's hard for me to switch to other editors
i am new to vs code, messed up some settings, how do i restore them to default
said the man who never used emacs for a week.
@@MichaelMantion obligatory vim comment
It was very much needed! Thanks!
Hello everyone .. I was just going through this video (on a Mac, OS11.5.2), and at the beginning, after installing the Python extension, in order to get the Virtual Environment to recognize, I had to quit and re-open VSCode. Took a few minutes of digging to get it to work, so I thought I'd leave a tip ;)
Really useful information. Keep up the good work!!!
I always see comments like ' I was just searching for this' but I was LITERALLY just searching for this, just out of curiosity and you have a new vid on it.
Amazing
This video is great, really cool features! Thanks
This was really great the extensions you recommended are really helpful suggestions. Thanks.
Very well paced! Great job!
Really enjoying the way you teach!!! Professional, and most of all practical. Thanks and greetings
Bruhhhh, AREPL is godsend
This was awesome.. Thanks I really needed this for a current project. Quick question.. can you show or explain how to display report of the pytest test runs ? Thanks
Awesome tutorial! Thank you!
Thanks for being so helpful. Especially AREPL!
Great information!
Greate! Those extensions will improve my work a lot.
great and comprehensive!
Very helpful. Thank you.
@Traversy Media After I told a girl in my class about all the hassle free work she can do using this plugins she asked me out, THANK YOU mate !!!.
You saved my life.. Thank you very much
Thanks Brad.
Also, please, don't forget about Svelte.
Just thought of moving from vs code to pycharm, and he pops up
Thanks for all the content you share. I appreciate your work.
Tremendously helpful--thank you for sharing your knowledge!
Everyone is just explaining how to debug on one single file. No one has posted when there are multiple files or dependencies. Please upload one if you have that
Really useful, thx so much
Exactly what I needed, really been fumbling a lot .. Thank you very much Trav. -:)
Brad this is really helpful...
Very helpful indeed, Thank you as always!
hey Brad, how about more webassembly?
FYI: Git bash for some reason throws "permission denied" to python3 commands, so you might wanna switch to regular windows cmd as a default terminal for your vscode.
Go to app execution aliasses in w10 settings and disable python app installers, that should fix it
This was useful, thanks for sharing!
2:56 can't find snippets
Thanks! This was very helpful.
You show code snippets as part of the Microsoft Python extension but I do not think that is included in the MS Python extension. Can you share how you enabled Python code snippets?
It got disabled
Just curious why you set up a virtual environment? I've just been using python as-is and I'm curious what the difference is?
Thank you! I needed this.
best explainer video
Very cool video, thanks.
Good video helpful. Can you do more python related videos ?
How can I have Snippets? I dont have snippets from the Python Extention (I'm on windows)
They are removed in new versions od python extension
Thanks for this content.
Exactly what I needed. Thanks!
For some reason I don't see snippet suggestions after installing the python extension. Any ideas on how to resolve this issue? Looks like snippets should be enabled in the recomendations.
OK, it looks like snippets were removed from the standard python VScode extension. You could add that to your vid as a note.
@@joejohn6795 i was just wondering and checked comments, thanks for clearing this up
As a beginner I don't find this video helpful at all. Maybe it's too advanced for me but when you got to "we need to create a virtual environment" I imminently had questions like "How are environments defined here, which one are we in now, what is a virtual one as opposed to another type, and why do we need a virtual one right now?"
Thank you Sir!
thanks. Another guide for best setting WordPress?
Thank you very much, very good tutorial. Awesome!
interesting fact: the python extension had 16 million downloads at the time of this video, and after 1 year and a half it has more than double (37 mil)
Now it's 40 million...!
17:04 => JavaScript vibes 😂
On we programming geeks/dev's can appreciate the humor in that :D
Hi Brad! I'm wondering of what do you think about machine learning stuffs in JavaScript like tensor flow,brain.js do you think it will become more a must learned skill in frontend jobs in near future? I just get comfortable with vanilla JavaScript and Im interested to learn these libraries, do you think it's a bad idea to jump to js machine learning from vanilla javascript? or are these libraries even practical to learn for frontend positions?