LeGoffLoic / Nodz

Nodz : Visualize your data - Free nodes based graph generator.
MIT License
421 stars 108 forks source link

Interactively testing Nodz in PyCharm/IPython #2

Open satishgoda opened 7 years ago

satishgoda commented 7 years ago

This issue is just an FYI for anyone who want to try out Nodz from within PyCharm with IPython running a Qt event loop. (I was not able to add to the Wiki, so I am adding to the issue.)

I have loaded Nodz and Qt.py repos in Pycharm and setup dependency of Qt.py on Nodz. I them marked the repos as sources root, so that they are available in PYTHONPATH.

In order for the IPython gui event loop to work properly, I first had to import Qt module and then enable application event loop in IPython.

In[1]: import Qt
In[2]: Qt
Out[2]: <module 'Qt' from 'F:\src\GitHub\nodegraph\Qt.py\Qt.py'>
In[3]: %gui qt4

Then I opened nodz_demo.py in the PyCharm editor and selectively executed code. Then in the Python Console, I interacted with the diagram.