• Login
Community
  • Login

NP++ can't execute function inside python file. But he is ok with file on application start. See 'ready'.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 3 Posters 4.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    John Spark
    last edited by May 9, 2016, 6:15 AM

    I executed same file in python’s IDLE, and then in NP++. I used for it NppExec. I have all settings correct. I really don’t what where is problem. Please help me.
    See two pics:
    http://i.imgur.com/NTnqyE1.png

    http://i.imgur.com/jLL4a97.png

    Thank you

    1 Reply Last reply Reply Quote 0
    • J
      John Spark
      last edited by May 9, 2016, 12:58 PM

      dael, claudia pls help

      1 Reply Last reply Reply Quote 0
      • D
        dail
        last edited by May 9, 2016, 1:30 PM

        NppExec is not a Python interpreter. You can’t use it like that.

        1 Reply Last reply Reply Quote 0
        • J
          John Spark
          last edited by May 9, 2016, 1:44 PM

          I don’t understand. I need NppExec just for it’s console. I need write handily code in NP++ and immediatelly see result in same program/window. I did it this way in IDLE, but it’s not good as NP++. I need to add something to show me results. Only option is NppExec.

          Is it possible to make it work or do I need other plugin ?

          Thanks

          1 Reply Last reply Reply Quote 0
          • D
            dail
            last edited by May 9, 2016, 1:47 PM

            The “console” in NppExec is pretty much the same as if you had Window’s command prompt open. It can run the entire file by executing the Python program, but it can’t run arbitrary functions within the file.

            1 Reply Last reply Reply Quote 0
            • J
              John Spark
              last edited by May 9, 2016, 1:49 PM

              But when I was setting this all weeks before with very kind and patient Claudia’s help, it was working. Not this particular python code. But that console was working exactly like python’s IDLE !
              I need Claudia please !!

              1 Reply Last reply Reply Quote 0
              • S
                Scott Sumner
                last edited by May 9, 2016, 7:24 PM

                Perhaps you are thinking of the Pythonscript console window?

                1 Reply Last reply Reply Quote 0
                • J
                  John Spark
                  last edited by May 9, 2016, 7:37 PM

                  what you mean, can you go deeper into details please ?

                  1 Reply Last reply Reply Quote 0
                  • S
                    Scott Sumner
                    last edited by May 9, 2016, 10:53 PM

                    Just that your description of an IDLE-like window made me think of the Pythonscript plugin’s console window that can be shown inside the Notepad++ program, that’s all. I thought perhaps you were thinking of that.

                    1 Reply Last reply Reply Quote 0
                    • J
                      John Spark
                      last edited by May 10, 2016, 11:21 AM

                      You meant this, right ?
                      https://github.com/bruderstein/PythonScript

                      I never used it, I just need get back into state when it was working to me.

                      1 Reply Last reply Reply Quote 0
                      5 out of 10
                      • First post
                        5/10
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors