emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Conversion to Jupyter notebooks
@ 2022-02-07  7:55 Joost Kremers
  2022-02-07  9:14 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Joost Kremers @ 2022-02-07  7:55 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Conversion to Jupyter notebooks
  2022-02-07  7:55 Conversion to Jupyter notebooks Joost Kremers
@ 2022-02-07  9:14 ` Ihor Radchenko
  2022-02-07 10:11   ` Joost Kremers
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2022-02-07  9:14 UTC (permalink / raw)
  To: Joost Kremers; +Cc: emacs-orgmode

"Joost Kremers" <joostkremers@fastmail.fm> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Conversion to Jupyter notebooks
  2022-02-07  9:14 ` Ihor Radchenko
@ 2022-02-07 10:11   ` Joost Kremers
  2022-02-07 14:06     ` John Kitchin
  0 siblings, 1 reply; 4+ messages in thread
From: Joost Kremers @ 2022-02-07 10:11 UTC (permalink / raw)
  To: fatiparty---

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Conversion to Jupyter notebooks
  2022-02-07 10:11   ` Joost Kremers
@ 2022-02-07 14:06     ` John Kitchin
  0 siblings, 0 replies; 4+ messages in thread
From: John Kitchin @ 2022-02-07 14:06 UTC (permalink / raw)
  To: Joost Kremers; +Cc: fatiparty---

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

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 <joostkremers@fastmail.fm>
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
>
>

[-- Attachment #2: Type: text/html, Size: 1668 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-07 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-07  7:55 Conversion to Jupyter notebooks Joost Kremers
2022-02-07  9:14 ` Ihor Radchenko
2022-02-07 10:11   ` Joost Kremers
2022-02-07 14:06     ` John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).