Image-Py / imagepy

Image process framework based on plugin like imagej, it is esay to glue with scipy.ndimage, scikit-image, opencv, simpleitk, mayavi...and any libraries based on numpy
http://imagepy.org
BSD 4-Clause "Original" or "Old" License
1.29k stars 330 forks source link

How to run it in PyCharm? #45

Open wuhongyewhy opened 5 years ago

wuhongyewhy commented 5 years ago

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?

yxdragon commented 5 years ago

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.

  1. please write your algorithm in advanced IDE
  2. 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.

CsatiZoltan commented 4 years ago

I think this issue can be closed. Lately, I also use PyCharm to debug ImagePy plugins. Here is the workflow.

  1. Copy your plugin you develop to the respective directory of ImagePy (e.g. imagepy/plugins/your_plugin/)
  2. Create a new project and add the whole imagepy/ directory to it (which now contains your plugins too).
  3. If you want to run or debug ImagePy, start imagepy/__main__.py. Then you will be able to put breakpoints in any file.