How to run it in PyCharm?
wuhongyewhy opened this issue · 2 comments
The PyCharm IDE is more powerfull than "Develop tool suite -> command line" or the PyAlaCarte. Is it any way to use PyCharm as code editor and the command line while openning ImagePy window to show result images?
I think it is possible by developing a pycharm plugin, but I has less knowledge about pycharm's development. I prefer to support jupyter in future.
ImagePy's command line is just a toy, which is not suitable for writting complex logic. ImagePy wants to act as a pure connector.
- please write your algorithm in advanced IDE
- then use ImagePy to wrap it as a plugin.
here is the plugin demo repo with document in detail.
The command line tool is for some trivial operation, very easy but not general, and not worth to be wrote in plugin. So PyAlaCarte is enough.
I think this issue can be closed.
Lately, I also use PyCharm to debug ImagePy plugins. Here is the workflow.
- Copy your plugin you develop to the respective directory of ImagePy (e.g.
imagepy/plugins/your_plugin/
) - Create a new project and add the whole
imagepy/
directory to it (which now contains your plugins too). - If you want to run or debug ImagePy, start
imagepy/__main__.py
. Then you will be able to put breakpoints in any file.