Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Jupyter notebooks #24

Open
esafak opened this issue Sep 1, 2016 · 4 comments
Open

Convert Jupyter notebooks #24

esafak opened this issue Sep 1, 2016 · 4 comments

Comments

@esafak
Copy link

esafak commented Sep 1, 2016

It would be nice if stitch could ingest notebooks so I can do my work in Jupyter then use stitch for archiving and converting.

@TomAugspurger
Copy link
Collaborator

Agreed. This example started as a notebook. To get to the HTML, I

  • cleared all the cell output

  • ran it through nbconvert to markdown

  • replaced all the opening

tags with

```{python}
```

Not ideal :( I'm hoping that podoc or a project like it will come along. That would convert from notebook to and from pandoc's JSON AST, which is where stitch does all its work.

@TomAugspurger
Copy link
Collaborator

TomAugspurger commented Nov 22, 2016

Thinking about this today, we could provide an nbconvert template that hides output and converts code-chunks from

```
code
```

to

```{kernel-name}
code
```

That would help a bit.

@jankatins
Copy link

jankatins commented Nov 22, 2016

It would be great if you cout make the first part configgureable:

   "python": <kernel-name>
   "python3": <different-kernel-name>

...
` ` `{python}
<code>
` ` `

That way it can be reused in normal settings (and I really need that because e.g. I have no r kernel, only ir-something...)

@grst
Copy link

grst commented Nov 21, 2017

I recently developed an Rmarkdown plugin for the ipymd project, which adresses this problem. It allows to directly open and edit Rmarkdown (or pymarkdown...) documents from jupyter, entirely replacing the ipynb notebooks.

I would still consider it in a "beta" state, but for now, it works quite well for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants