Re: Conversion to Jupyter notebooks

2022-02-07 Thread John Kitchin
I use ox-ipynb pretty regularly to make lecture notebooks.  It isn't quite
like most exporters, e.g. it doesn't support all kinds of links to
sections,

There is support for making different versions of the notebooks though,
e.g. with/without solutions, or without sections that are just for you.
That should all be described in  the commentary in the library.


John

---
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Mon, Feb 7, 2022 at 5:14 AM Joost Kremers 
wrote:

> On Mon, 7 Feb 2022, at 10:14, Ihor Radchenko wrote:
> > ox-ipynb is being maintained at
> > https://github.com/jkitchin/ox-ipynb
>
> Ah, great! I had somehow missed that...
>
>
> --
> Joost Kremers
> Life has its moments
>
>


Re: Conversion to Jupyter notebooks

2022-02-07 Thread Joost Kremers
On Mon, 7 Feb 2022, at 10:14, Ihor Radchenko wrote:
> ox-ipynb is being maintained at
> https://github.com/jkitchin/ox-ipynb

Ah, great! I had somehow missed that...


-- 
Joost Kremers
Life has its moments



Re: Conversion to Jupyter notebooks

2022-02-07 Thread Ihor Radchenko
"Joost Kremers"  writes:

> All I could find on the internet was a script by John Kitchin[1] that's from 
> 2017 and it's apparently not entirely compatible with current Emacs and/or 
> Org mode, as it throws errors when I try to use it. I'm sure I could fix the 
> errors, but before I invest the time to do that, I wanted to ask here.

ox-ipynb is being maintained at
https://github.com/jkitchin/ox-ipynb

Best,
Ihor



Conversion to Jupyter notebooks

2022-02-07 Thread Joost Kremers
Hi list,

I was wondering if anyone here has experience converting Org files to Jupyter 
notebooks, keeping the python source blocks as code blocks and correctly 
identifying the =#+RESULTS:=. Just dropping the results would be fine as well.

I realise there are several ways to interact with Jupyter notebooks in Emacs, 
but that's not really what I'm looking for. I'd like a plain old Org file with 
source blocks that I can execute within Emacs and I would like to convert that 
into an .ipynb file that I can share with people that don't use Emacs.

All I could find on the internet was a script by John Kitchin[1] that's from 
2017 and it's apparently not entirely compatible with current Emacs and/or Org 
mode, as it throws errors when I try to use it. I'm sure I could fix the 
errors, but before I invest the time to do that, I wanted to ask here.

TIA

Joost




Footnotes:
[1]  
https://kitchingroup.cheme.cmu.edu/blog/2017/01/21/Exporting-org-mode-to-Jupyter-notebooks/

-- 
Joost Kremers
Life has its moments