Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.56 KB

org-programming.org

File metadata and controls

68 lines (52 loc) · 1.56 KB

In “C-c ‘“ Eglot not supported.

Remote:

To edit remote use C-x C-f /ssh:sshconfigrecord:

  • C-c C-c working on remote

For remote, working in “C-c ‘“ and directly with C-c C-c:

#+begin_src python :dir "/ssh:host:"
#+end_src

not supported for remote:

:session s1

You may use RESULT as a value in other source block

But this will require to execute first block fully when you do C-c C-c at second block. Value passed as a string.

print("String value.")
print(vv)
print(vv)

You may use RESULT as a value in other source block 2

To pass value with structure use dict and JSON format.

import json
print(json.dumps({"x": "String value."}))
import json
print(vv)
vv2 = json.loads(vv)
print(vv2)
{"x": "String value."}

:

{'x': 'String value.'}
print(vv2['x'])
String value.

For troubleshooting use:

(let ((default-directory "/ssh:host:/root/"))
(org-babel-eval "python" "import sys; print(sys.path)"))

use: ln -fs /usr/local/bin/python3.11 /usr/bin/python