Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.04 KB

DEVELOPMENT.md

File metadata and controls

32 lines (21 loc) · 1.04 KB

How to Develop Netron

Netron can run as both an Electron app or a Python web server.

Develop the Electron app

The start the Electron app, install Node.js and run:

npm install
npx electron .

To debug the Electron app use Visual Studio Code and install the Debugger for Chrome extension, open the ./Netron root folder and press F5. To attach the debugger to a rendering window select the Debug tab and Debug Renderer Process before launching.

To build full Electron app binaries to the ./build/electron folder run:

npx electron-builder --mac --linux --win

Develop the Python server

To build and launch the Python server run:

npm install
python ./setup.py build
PYTHONPATH=./build/python/lib python ./build/python/scripts-2.7/netron [...]

The same can be accomplished by running the ./netron script in the enlistment root folder.