A logseq graph that demonstrates how to use python and/or javascript code within a logseq graph giving Jupyter like behaviours - includes using logseq API calls to get pages and blocks and run queries.
- A full walkthrough of the graph can be found in this video here
- Uses the technique developed by mentaloid in these logseq forum pages
-
- https://discuss.logseq.com/t/edit-and-run-python-code-inside-logseq-itself/20829
- Note the language R is also supported now as at Sep 28th, 2023
- https://discuss.logseq.com/t/edit-and-run-python-code-inside-logseq-itself/20829
- demonstrates how to execute python and/or javascript code in your graphs
- includes
- Basic and advanced python and JavaScript code execution examples
- Logseq API interactions with working example such as
- Accessing page and/or block content
- Access to Query results
- pre configured graph
- which includes full instructions on how to configure any graph for code execution
- can be downloaded for your own experimentation
- click the green Code button and choose 'download zip'
- unzip the graph and add it to Logseq
- Works on Mac and Android without plugins
- Windows and IOS are not yet tesed Configuration Requirements for code execution
- Works on Mac and Android without plugins
- Logseq 9.18 and higher
- Knowledge of python and/or javascript