Bo is so explosive! Python script visualization can be so fun!

Just as artists use paintings to let people perceive the world more closely, data visualization also allows people to more intuitively convey the information that data wants to express. Do you know how nice Python script visualization is? Like the picture below, does it feel very high-end and high-end:

Many people learn python and don't know where to start.
Many people learn python and after mastering the basic grammar, they don't know where to find cases to get started.
Many people who have done case studies do not know how to learn more advanced knowledge.
For these three types of people, I will provide you with a good learning platform, free to receive video tutorials, e-books, and course source code! ??¤
QQ group: 232030553

The above examples are implemented through Ryven. Ryven is a Python script visualization tool. You don’t need to export any code when running. Everything can be executed in the editor. Any Python code can be placed in a node, and you can create and The programming nodes are quite simple, and you can also use Qt to add an intuitive user interface.

In this way, you may still feel that it is not intuitive enough. Let's take a look at the usage of Ryven and you will be clear. First, prepare the development environment:

  • Python3 (over 3.8 recommended)
  • PySide2 (recommended above 2.14)

After starting the editor, just run Ryven.py. Some sample packages are located in the packages folder, and you can find sample projects using these packages in the saves folder.

In Ryven, there are different scripts. Each script has variables, streams (or graphs), and logs. It can be easily operated by right-clicking.

Import node

First, you need to import the node package to use its node ((File -> Import Node, then select the package file *.rpc).)

Algorithm mode

this point is very important. As you may know, most popular visual programming editors adopt pure data flow (no execution connection) or execution flow method. In Ryven, the creator used two paradigms. From an algorithmic point of view, the two types are quite different. Data flow is suitable for any type of linear data processing or calculation, and execution flow can be used for algorithmic structures that use control structures (such as loops).

Data flow: In a data flow, every data change (which means that the data output of a node has changed) will be propagated forward and trigger an event update in all connected nodes.

Execution flow: In the execution flow, the data never propagates forward when it changes, but when it is generated when requested (backward), only output is requested somewhere (via self.input(), see API) When the data is available, an event update is triggered at the affected node. However, if the active node requests this data (as shown below), the entire expression will be executed.

Control items: Support stylus, zoom function (Ctrl + mouse wheel), place node (right click).

About the creator

The creator, Samuel, is a web graphic designer and an amateur photographer. He is proficient in Creative Cloud and knows "Cinema 4D" (3D software), "Autodesk Inventor" (CAD software), etc. Currently still a college student, majoring in information design.

Guess you like

Origin blog.csdn.net/Python_sn/article/details/113108482
SO?