emacs-jupyter/jupyter

Continuation lines not allowed with :dir

Opened this issue · 0 comments

I'm not yet sure when this problem arose, but I can no longer have continuation lines if I have a :dir header set.

This works:

#+BEGIN_SRC jupyter-python :exports both
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.random((3,3)))
df = df\ 
    .mean() # contine line
df
#+END_SRC

But if I add :dir ~/ it fails:

#+BEGIN_SRC jupyter-python :exports both :dir ~/
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.random((3,3)))
df = df\ 
    .mean() # contine line
df
#+END_SRC

#+RESULTS:
:RESULTS:
# [goto error]
Cell In[13], line 4
   df = df\
           ^
SyntaxError: unexpected character after line continuation character
:END: