mwouts / jupytext

Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
https://jupytext.readthedocs.io
MIT License
6.51k stars 385 forks source link

PyCharm plugin for Jupytext #147

Open mwouts opened 5 years ago

mwouts commented 5 years ago

The VIM plugin for jupytext is great! With that plugin, one can edit the ipynb represented as text, directly in VIM. Can we have a similar plugin for PyCharm?

mwouts commented 5 years ago

The big question here is whether a PyCharm plugin can run python code. I've asked this question on the PyCharm issue tracker.

tribbloid commented 5 years ago

Good suggestion! I have observed at least 2 open sourced plugin that supports running code in REPL, these are:

https://github.com/julienr/pycharm-cellmode

https://github.com/donkirkby/live-py-plugin

Your case is a bit different, as a jupyter-notebook server has to be set up with the IDE's file panel, then any command that triggers a cell run should be redirected to that server, which will refresh the web page in the IDE's right panel. This is definitely doable, probably not hard if not considering device & environment compatibility.

The problem at the moment is that JetBrain promised to upgrade their suppot for ipynb file and release an alpha in PyCharm 2019EAP1, so everybody is kind of sitting there and observing. If it is not released (or if it still sucks) I believe they will act immediately on your proposal.

mwouts commented 5 years ago

Thanks @tribbloid for the references - that's exactly what I was looking for.

Yes I agree that we should wait and see what PyCharm delivers in their next release. Indeed, they answered PY-33389 with the mention:

we are working on the same system right now, the current ETA for Jupyter redesign is 2019.1.

patricksheehan commented 2 years ago

For what it's worth, I would love this. Super tired of using Jupyter Lab for notebooks then PyCharm for everything else. I'd also really prefer not to have .ipynb files anywhere or to have to manage syncing them. .py files only but with native pycharm notebook support would be grand!

mwouts commented 2 years ago

Hi @patricksheehan , well this is an old issue, maybe I can give a few updates