How to run a Python script in VS Code

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • To run a Python script/file in Visual Studio Code,
    - Method 1: you can press F5 to start a debugger and go through each step line by line.
    - Method 2: type the command `python your_script.py` or `python3 your_script.py` to execute it.
    #shorts #python #nplearn #tutorial

ความคิดเห็น • 30

  • @nedaskvederas721
    @nedaskvederas721 2 หลายเดือนก่อน +3

    thank you so much. I honestly can't thank you enough. I was trying for HOURS and this short video saved me. Thank you so much

  • @CommonStudentActivity
    @CommonStudentActivity ปีที่แล้ว +56

    Plz also tell what extensions are needed to be installed.. without extension python file cannot be run

    • @DoubleSwee
      @DoubleSwee ปีที่แล้ว +6

      He's using python script

    • @Meltdown_-kenjung-
      @Meltdown_-kenjung- ปีที่แล้ว +5

      "Python"
      extension name

    • @nplearn
      @nplearn  ปีที่แล้ว +4

      Please install Python extension to make it works: marketplace.visualstudio.com/items?itemName=ms-python.python

    • @Mroczny9348
      @Mroczny9348 4 หลายเดือนก่อน +1

      What about lua? Do you know which one I have to install? (I can't find:( )

  • @xlrclash
    @xlrclash 6 หลายเดือนก่อน +7

    idk why i got recommended this but if you use vs code instead of pycharm for python then something MIGHT be wrong

  • @AmanKumar-rv1th
    @AmanKumar-rv1th 7 หลายเดือนก่อน +1

    Bhai running ka option nai ara when i cick F5 so it go to extension and show 'we cannot connect to the Extensions marketplace at this time' so what i have do now

  • @UB4NMEUG4Y
    @UB4NMEUG4Y 6 หลายเดือนก่อน +1

    This is so hard

  • @godofstring
    @godofstring 7 หลายเดือนก่อน +1

    what song is this!

    • @orlando_kawaii
      @orlando_kawaii 7 หลายเดือนก่อน

      Ice & Fire by King Canyon 🐼

  • @godwinfrance2156
    @godwinfrance2156 ปีที่แล้ว +3

    I need help

    • @nplearn
      @nplearn  ปีที่แล้ว +1

      Install Python extension: marketplace.visualstudio.com/items?itemName=ms-python.python

  • @Meletion1
    @Meletion1 ปีที่แล้ว +13

    How to you get that autocomplete 🤯

    • @puffyandchicky
      @puffyandchicky ปีที่แล้ว +2

      Did you find out

    • @Meletion1
      @Meletion1 ปีที่แล้ว +3

      @@puffyandchicky nope

    • @sarahb2907
      @sarahb2907 ปีที่แล้ว +7

      I think it's the extension in VScode called Pylance

    • @zeechy
      @zeechy ปีที่แล้ว +3

      ​@@sarahb2907 you would be correct

    • @Darkfeyttt
      @Darkfeyttt ปีที่แล้ว +3

      Depending on what completion you are referring to, it might be github co-pilot that you are looking for. We can see the icon of co-pilot I'm the bottom right of the video.

  • @KingUT441
    @KingUT441 ปีที่แล้ว

    Bro Which App You Are Using ??

    • @nplearn
      @nplearn  ปีที่แล้ว

      VS code + Python + Github copilot

  • @amandamukandiwa7626
    @amandamukandiwa7626 8 หลายเดือนก่อน +1

    Song?

    • @robberl1031
      @robberl1031 6 หลายเดือนก่อน

      Ice & Fire (feat. Son Little & Mike Chivaro)

  • @satyakikar8598
    @satyakikar8598 ปีที่แล้ว

    Nothing works

    • @nplearn
      @nplearn  ปีที่แล้ว

      Install the Python extension marketplace.visualstudio.com/items?itemName=ms-python.python

  • @kalvimusic5515
    @kalvimusic5515 ปีที่แล้ว

    Bord name bro

    • @nplearn
      @nplearn  ปีที่แล้ว

      marketplace.visualstudio.com/items?itemName=ms-python.python

  • @Brijonironside
    @Brijonironside 10 หลายเดือนก่อน

    abal