astoff / code-cells.el

Emacs utilities for code split into cells, including Jupyter notebooks
GNU General Public License v3.0
180 stars 11 forks source link

notebook is not getting converted when written to file #25

Open vanangamudi opened 8 months ago

vanangamudi commented 8 months ago

Emacs version: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0)

Configuration:

#+begin_src sh
  pip install jupyterlab jupytext
#+end_src
#+begin_src emacs-lisp
  (use-package code-cells
    :config
    (setq code-cells-convert-ipynb-style '(("pandoc" "--to" "ipynb" "--from" "org")
                                           ("pandoc" "--to" "org" "--from" "ipynb")
                                           (lambda () #'org-mode))))
#+end_src

The notebook file sample.ipynb gets converted automatically into org-mode, but when writing to the file it stays in org-mode format.