2 ms·
I have felt the same way in the past. There are some ways to do this, but none is great. Unfortunately using a text editor to put in the notebook text areas is
by dimatura 8y ago
I have felt the same way in the past. There are some ways to do this, but none is great. Unfortunately using a text editor to put in the notebook text areas is not that straightforward because of security features in modern browsers. Since jupyter is actually a server (usually running locally) it's possible to communicate directly with it from a sufficiently advanced editor, but haven't seen any good execution of that idea. There's also the ipymd (https://github.com/rossant/ipymd https://github.com/rossant/ipymd) format, which is just markdown, and seems more or less what you want, but you lose the interactivity and display of images/plots/HTML/etc. Personally, I've found the "jupyter-vim-binding" (https://github.com/lambdalisue/jupyter-vim-binding https://github.com/lambdalisue/jupyter-vim-binding) to be a relatively acceptable emulation of vim keybindings for the code editing.
- enriquto 8y agoThis is not what I mean. Mine is a problem of file formats, not of interactivity. I want to edit a text file alone, without need for any web browser in my computer. Then I push the notebook to git, and somewhere else it is opened by the browser. This would be possible today if the notebook file was python code with comments, for example, instead of an uneditable json.
- dpwm 8y agoThis is quite a neat idea. A couple of people have mentioned Jupytext around here. I found a guide with animations which appears like it might do what you want. [0] I personally look forward to trying this out, as it means that I can use Jupyter in a way that doesn't mean adapting my workflow to the tool so much. [0] https://towardsdatascience.com/introducing-jupytext-9234fdff6c57 https://towardsdatascience.com/introducing-jupytext-9234fdff...