How to run Python Program in Notepad++ ?

Поділитися
Вставка
  • Опубліковано 9 лис 2024
  • In this tutorial session, we will learn to run a python program in Notepad++, also you will learn to create a shortcut key to run the python program.
    Step 1: first check python is installed on the system.
    open cmd and type python --version
    If python not installed,
    Please watch this tutorial for installation:
    link- • Setting up Python Deve... (follow steps 1 and 2 from this tutorial to install python)
    Step 2: Install new plugin "NppExec" inside notepad++. (if already installed, ignore this step)
    Step 3: go to plugins -- NppExec -- click on Execute
    Here is the command window. we will add the following script and save it with a new name.
    NPP_SAVE
    cd $(CURRENT_DIRECTORY)
    python $(FILE_NAME)
    Step 4: Create menu item and shortcut key to run python program:
    go to plugins -- NppExec -- click on Advanced options
    Now Go to settings --shortcutmapper and follow my instructions to create a shortcut.
    Step 5: sample python program and test run.
    Step 6: Seems working! Please Like this tutorial and Subscribe to learn more.
    If you found this video tutorial useful and would like to support me, you can do so by buying me a coffee using the below link!
    buymeacoffee.c...
    #RunPythonNotepad++ #CoolITHelp #PythonRunNotepad++

КОМЕНТАРІ • 40

  • @keeganmerickson
    @keeganmerickson Рік тому +12

    For anyone confused as to why the execute option is not there, in the current version it is now called "Execute NPPexec Script"

  • @anirbellahcen5551
    @anirbellahcen5551 2 роки тому +4

    I just started to program on Notpad++ and this video was so useful.

  • @DeGeneral876
    @DeGeneral876 3 роки тому +10

    I AM GETTING THIS ERROR WHEN I RUN IT =
    Current directory: C:\Program Files\Python39
    python: can't open file 'C:\Program Files\Python39\hello': [Errno 2] No such file or directory

  • @souparnaguchhait2091
    @souparnaguchhait2091 2 роки тому +1

    absolute legit
    if someone couldn't do it
    try again

  • @AlyxWyld
    @AlyxWyld Рік тому +2

    Thanks for the help! the only issue im running into is Notepad++ says "The sum of 1.5 and 6.3 is " whenever i run the program, not sure why the sum isnt working but the rest of it is

  • @nishathfathima5605
    @nishathfathima5605 6 місяців тому

    Thank you so much. I've been breaking my head for 2 days. Got it

  • @themanwhoknewtoomuch6667
    @themanwhoknewtoomuch6667 2 роки тому

    You are a wonderful teacher with a beautiful timbre of voice. Thank you for your help.

  • @raviteja1773
    @raviteja1773 2 роки тому +5

    Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
    getting like this

  • @edldsplpilot
    @edldsplpilot Рік тому +1

    This tutorial is very helpful. Thank you very much for this video.

  • @sushkiduniya4561
    @sushkiduniya4561 3 роки тому +1

    So without installing Vs video code can we run the Notepad++?

  • @hajjihbofficial
    @hajjihbofficial 2 роки тому +2

    The tutorial is definitely helpful! Thank you!

  • @iutobakk
    @iutobakk Рік тому +1

    Thanks you helped me a lot

  • @harunrhimu
    @harunrhimu 6 місяців тому

    ( [Errno 2] No such file or directory) i faced these issues. Can you please help me?

  • @sauliusvitkauskas8741
    @sauliusvitkauskas8741 6 місяців тому

    WHAT IS NPPEXEC AND WHY CANT I FIND IT?

  • @Uki3612
    @Uki3612 9 місяців тому

    If that script doesn't work, here is the second one:
    npp_console local - // disable any output to the Console
    npp_save // save current file (a .py file is expected)
    cd "$(CURRENT_DIRECTORY)" // use the current file's dir
    set local @exit_cmd_silent = exit() // allows to exit Python automatically
    env_set local PATH = $(SYS.PATH);C:\Python27 // using Python 2.7
    npp_setfocus con // set the focus to the Console
    npp_console local + // enable output to the Console
    python -i -u "$(FILE_NAME)" // run Python's program interactively

  • @ritamde4063
    @ritamde4063 11 місяців тому

    Thank you very much, very useful video 😃

  • @kebedeshogile818
    @kebedeshogile818 2 роки тому +1

    Helpful! I have used it! Thank you!

  • @mintedpanda3019
    @mintedpanda3019 7 місяців тому

    Thank you, really helpful.

  • @anjitdamor1614
    @anjitdamor1614 2 роки тому

    U are very good tutor
    Love u bro

  • @SelvinDesouza
    @SelvinDesouza 2 роки тому

    Finally something useful..👍

  • @aratiuikey6326
    @aratiuikey6326 Рік тому +1

    This is amazing😊

  • @CoolDudeGamer001
    @CoolDudeGamer001 Рік тому

    REALLY THANK YOU SIR

  • @k.k.santoshk.k.8743
    @k.k.santoshk.k.8743 Рік тому

    Thanks a lot it is very helpful👍

  • @loguchand6475
    @loguchand6475 Рік тому

    it really works, thankyou

  • @cscor
    @cscor Рік тому

    thank you,it worked )

  • @indian3021
    @indian3021 Рік тому

    thank you so much

  • @arr8215
    @arr8215 Рік тому

    Thank you..

  • @bilyez
    @bilyez 5 місяців тому

    It's easier to run from cmd, Heck, file explorer even.

  • @fredherring876
    @fredherring876 Рік тому

    great

  • @SARA_SM88
    @SARA_SM88 2 роки тому

    perfect tutorial

  • @GuiMaster10Mil
    @GuiMaster10Mil 2 роки тому +1

    Doesn't work.

  • @Israelolulayo
    @Israelolulayo 11 місяців тому

    Waaooo

  • @רוןברמר
    @רוןברמר 2 роки тому

    helpful tnx

  • @oooo0O0oooo
    @oooo0O0oooo Рік тому