Execute python code inside browser without Jython

后端 未结 10 1651
北荒
北荒 2020-12-29 07:47

Is there a way to execute python code in a browser, other than using Jython and an applet?

The execution does not have to deal with anything related to graphics. For

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 08:16

    You mean client-side?

    Sure you can! But you need to have python installed on the client first.

    The linked book describes that in order to use client-side Active Scripting, you can test it with the a simple html file.

    
    
    
    

    In the old version refered in that book (Python programming on Win32 By Mark Hammond, Andy Robinson) it says that you need to install the Python Win32 extensions, and it will automatically register Python Active Scripting. Should you do it manually, you have to run the script python\win32comext\axscript\client\pyscript.py.

提交回复
热议问题