I mostly use Spyder for my data analysis and am quite satisfied with it. There you can use the cell functionality of Jupyter Notebooks in normal python scripts using # %%
to delimit individual code cells (and also execute blocks). The same thing is also possible in Atom with Hydrogen.
What I am looking for is a way to convert these scripts into a jupyter notebook, automaticlally splitting cells at each # %%
. The notebook I would use to document, explain and share my workflow by inserting some markdown and possibly saving as pdf or html.
Can the conversion be done automatically? Is this perhaps doable with nbconvert
? (I only use it the other way around: jupyter -> python)