pasteimages icon indicating copy to clipboard operation
pasteimages copied to clipboard

Allow this to work also in PyCharm Jupyter notebooks plugin

Open lopezvit opened this issue 5 years ago • 4 comments

It could be useful than when working with PyCharm Jupyter notebooks plugin this works as well, since Jupyter notebooks is having support for markdown.

Eg.

image

lopezvit avatar Oct 18 '19 11:10 lopezvit

Any idea how to contribute to this? It would be very useful for us.

tobidelbruck avatar Nov 12 '20 20:11 tobidelbruck

Should not be that hard. All we/you would need is to also accept ipynb in https://github.com/holgerbrandl/pasteimages/blob/a5aebb956321818a24e93340a00c67bf65a9aaa9/src/main/java/img2md/PasteImageHandler.java#L73-L73 and make the inserted code conditional on the document type.

holgerbrandl avatar Nov 12 '20 21:11 holgerbrandl

I can try it. I'm experienced java developer via netbeans, but not with intellij stuff. If you can point me to newbie guide that might help me more than https://jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html that would be great.

Should I fork and then if get it working can let you know? Thanks!

tobidelbruck avatar Nov 13 '20 02:11 tobidelbruck

Indeed, the process would be

  • fork it
  • make sure to have devkit plugin enabled in intellij
  • clone the fork and import it as gradle project
  • implement the ipynb support
  • either publish as new plugin to ij plugin repo, or create PR on this repo to keep the functionality in a single plugin. In the latter case I'd do the publishing to the plugin repo.

Feel welcome If you have any questions.

holgerbrandl avatar Nov 13 '20 06:11 holgerbrandl