Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    10 貼文 3 Posters 5.0k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • John SparkJ
      John Spark
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • John SparkJ
        John Spark
        最後由 編輯

        dael, claudia pls help

        1 條回覆 最後回覆 回覆 引用 0
        • dailD
          dail
          最後由 編輯

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

          1 條回覆 最後回覆 回覆 引用 0
          • John SparkJ
            John Spark
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • dailD
              dail
              最後由 編輯

              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 條回覆 最後回覆 回覆 引用 0
              • John SparkJ
                John Spark
                最後由 編輯

                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 條回覆 最後回覆 回覆 引用 0
                • Scott SumnerS
                  Scott Sumner
                  最後由 編輯

                  Perhaps you are thinking of the Pythonscript console window?

                  1 條回覆 最後回覆 回覆 引用 0
                  • John SparkJ
                    John Spark
                    最後由 編輯

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • Scott SumnerS
                      Scott Sumner
                      最後由 編輯

                      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 條回覆 最後回覆 回覆 引用 0
                      • John SparkJ
                        John Spark
                        最後由 編輯

                        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 條回覆 最後回覆 回覆 引用 0
                        • 第一個貼文
                          最後的貼文
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors