How to run a python script in Notepadqq?

Asked

Viewed 103 times

0

when I press "RUN" this window appears

1 answer

0

In the image you put in the question there is a field for you to type a command, type the command to run the current script, in my case I would type:

/usr/bin/python %path%

When you confirm you will be prompted for a short name for the command, of the name you want, for example: "Run Python".

Maybe it just works too python %path% instead of placing the full python path, to find out the possible python paths on your system, type, in the command line:

$ whereis python

Saida (in my environment):

$ whereis python
python: /usr/bin/python3.6m-config /usr/bin/python ....

After you do the above procedures, a new option will appear in the Run menu of notepadqq, which is a "shortcut" to run the current file in python (with the name q vc put).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.