Saving, opening, importing

Networks are saved as .wnet.json files in their folders; Vision's *_net.py files are imported without being run.

Save and open

File menuwhat it does
Save / Save as…writes <name>.wnet.json in the network's folder
Open network (.wnet.json)…opens a network file from your computer as a new network (dropping the file on the page does the same)
Download the network filethe .wnet.json, to your computer
Download the network folder (zip)the network with the files its nodes read and wrote
Rename network…its name, shown in its tab and in the open networks menu

Each network also writes autosave.wnet.json in its folder after every change. A network file is JSON: the nodes (library, class, name, place), their widget values and options, the code of the nodes you changed, the ports you added, the macros and their insides, the connections, and the state of the viewers (camera, renderer, rendering, legends). Data is not saved: running the network makes it again.

Files that nodes read are found relative to the network's folder. To bring a file from your own computer, use the ⇧ button of a file widget, or Upload from this computer… in the file browser: the file is copied into the network's folder.

Importing Vision networks

File > Import a Vision network (*_net.py)…, or drop the file on the page, or, without the page:

bin/wewos import old_net.py -o new.wnet.json

Vision saved a network as a Python program that rebuilt it. WEWoS does not run that program: it converts its Python 2 syntax to Python 3, reads it, and interprets only what Vision's generated files do: load libraries, create nodes, set widget values and options, change code, add ports, build macros, and connect.

The report shown after importing cartoon2b_net.py
The import report of the tutorial's cartoon2b_net.py: what was imported, and what was not carried over.

How nodes come across

The data files a Vision network reads are not part of its _net.py: upload them into the imported network's folder (the ⇧ button of a file widget), or give their full path on the server.