Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Load Another Source Block Into A Python Variable In Emacs Org Mode

This is how you can work on a code block with syntax highlighting and pass it to another code block for direct output

js
function run(argv) {
    console.log("here 1")
}
python
print('''
<<data1>>
''')

#+begin _ example

function run(argv) { console.log("here 1") }

#+end _ example

If you're just using text, you can do this

The birch canoe slid on the smooth planks. Glue the sheet to the dark blue background. It's easy to tell the depth of a well. Rice is often served in round bowls. The juice of lemons makes fine punch. The box was thrown beside the parked truck.

python
print(data)
results start

This shows how you can do it with data from the end of a file (or wherever)

python
print(end_data)
results start

#+begin _ example

this is a test and another line

#+end _ example