hydrogen: Export Notebook - markdown cells not correctly exported to ipynb
Description:
When exporting a py-File to ipynb-File the Markdown-Cells are exported as Code-Cells, not as Markdown cells.
Steps to Reproduce:
- Copy the following code to a new py-File:
#%%
print('hello world')
#%%markdown
# # Headline1
# - bullet point
# **bold text**
# %%
print('bye world')
-
Run “Hydrogen - Export Notebook”
-
Open the created ipynb-File in Jupyter Notebook, you’ll see:

Expected would be a markdown cell:

Versions: Hydrogen 2.4.1 Atom 1.25.1 Running on Solus Linux Which OS and which version of Hydrogen and Atom are you running?
Logs: not relevant
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 23 (17 by maintainers)
@Madhu94: I stumbled upon it through the “rich document” feature, described shortly on the bottom of this page. I expected the markdown-parts of such an document to be exported as markdown-cells even without “%%markdown” syntax (this would be my favourite solution), but as it didn’t do this, I thought at least the markdown syntax might be able to handle that.
But I want to give a bit background:
I like a lot the R-Notebooks, which allow to mix Code and Markdown in the same file. There, I can write everything from top to bottom in a single text file in my IDE, and it can also be read in every simple Text-Editor. In e.g. Jupyter I have to create/move cells in the Web-App, and I need a notebook viewer to render the content.
Hydrogen, with “Rich documents” is just soooo close to filling this need, which would be really cool. Unfortunately, as long as a Hydrogen is not “the standard”, such a feature still would be quite worthless without being able to export such a Rich Document to Jupyter Notebooks, so I can share it in my university class or something…
So, if the markdown-parts of a “Rich document” would be rendered as jupyter-markdown-cells (with, or even better without %%markdown), this would be so perfect. I guess other people knowing R-Notebooks might feel the same… 😃