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

Continuation lines not allowed with :dir #567

Open
mankoff opened this issue Dec 17, 2024 · 0 comments
Open

Continuation lines not allowed with :dir #567

mankoff opened this issue Dec 17, 2024 · 0 comments

Comments

@mankoff
Copy link

mankoff commented Dec 17, 2024

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:
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

1 participant