mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Use a raw string in :dir handling code for Python source blocks
This commit is contained in:
parent
724d03ea20
commit
a2cbebdfda
2 changed files with 7 additions and 2 deletions
|
@ -99,7 +99,7 @@ import os
|
|||
__JUPY_saved_dir = os.getcwd()
|
||||
os.chdir(\"%s\")
|
||||
try:
|
||||
get_ipython().run_cell(\"\"\"%s\"\"\")
|
||||
get_ipython().run_cell(r\"\"\"%s\"\"\")
|
||||
finally:
|
||||
os.chdir(__JUPY_saved_dir)"
|
||||
(plist-get changelist :dir) code)))
|
||||
|
|
|
@ -2857,7 +2857,12 @@ os.path.abspath(os.getcwd())"
|
|||
(concat ": "
|
||||
(funcall convert-path
|
||||
(expand-file-name
|
||||
(directory-file-name default-directory))) "\n"))))))
|
||||
(directory-file-name default-directory))) "\n")))
|
||||
(ert-info ("Transformed code and backslashes")
|
||||
;; See #302
|
||||
(jupyter-org-test-src-block
|
||||
"print(r\"\\r\")"
|
||||
": \\r\n")))))
|
||||
|
||||
(ert-deftest jupyter-org--find-mime-types ()
|
||||
:tags '(org mime)
|
||||
|
|
Loading…
Add table
Reference in a new issue