SublimeText / Helium

Let Sublime Text talk with Jupyter.
Other
237 stars 15 forks source link

How to edit the notebook? #59

Closed gerald-lbn closed 5 years ago

gerald-lbn commented 5 years ago

Hi, first thanks for this package. Is it possible to edit the code from the jupyter notebook on Sublime Text 3? If that is the case what am i doing wrong?

I manage to connect ST3 to jupyter but I only get the output of Jupyter and a bunch of untitled tabs on ST3..

I a running Python 3.7.3 and the last version of ST3

sschuhmann commented 5 years ago

This plugin uses special formatted python files to send the code to the jupyter kernel. A code block is opened using # %%, #%% or # <codeblock>

If you are connected to a kernel, you can see run cell after those openings. Whith this you can run your code.

An import of jupyter files doesn't seem to be implemented

ngr-t commented 5 years ago

Yes, as @sschuhmann says, Hermes does not have features to edit .ipynb files. If "to edit the code from the jupyter notebook" means to edit .ipynb file directly, the answer is simply no, and it's out of the current scope of this project.

I suggest to make scripts as which can be rendered with pweave or Rmarkdown and use Hermes to just preview, render it with pweave / RMarkdown when it finishes.