[GH-ISSUE #3555] [FR] Executing code blocks #1611

Closed
opened 2026-03-23 20:51:40 +00:00 by mirror · 5 comments
Owner

Originally created by @moolight-seashell on GitHub (Sep 29, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3555

Description

add the possibility to run a codebloks with the output result bellow the code blocks

something like jupiter notebook for python
we already have this feature in cherry tree and obsidian with an extention

maybe support only few language first like python because you can run the code directly without compile it

Impact

as i have try to show this is a quite common feature, and it allow to make better documentation for code.

It allows you to embed intelligence in a note

Additional Context

No response

Originally created by @moolight-seashell on GitHub (Sep 29, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3555 ### Description add the possibility to run a codebloks with the output result bellow the code blocks something like jupiter notebook for python we already have this feature in cherry tree and obsidian with an extention maybe support only few language first like python because you can run the code directly without compile it ### Impact as i have try to show this is a quite common feature, and it allow to make better documentation for code. It allows you to embed intelligence in a note ### Additional Context _No response_
mirror 2026-03-23 20:51:40 +00:00
Author
Owner

@MayurSMahajan commented on GitHub (Oct 3, 2023):

I am thinking this feature can not be provided as a default in AppFlowy. But maybe in the future, we can support it as an external plugin or extension. What are your thoughts?

cc @Xazin @a-wallen

<!-- gh-comment-id:1744741420 --> @MayurSMahajan commented on GitHub (Oct 3, 2023): I am thinking this feature can not be provided as a default in AppFlowy. But maybe in the future, we can support it as an external plugin or extension. What are your thoughts? cc @Xazin @a-wallen
Author
Owner

@moolight-seashell commented on GitHub (Oct 3, 2023):

yes, of course, there are more important things to consider, especially as it will probably be relatively complex to implement, and will probably not be used by the majority of users.
but even if it takes a while or even if a single language is managed, it'll be great!

<!-- gh-comment-id:1745337861 --> @moolight-seashell commented on GitHub (Oct 3, 2023): yes, of course, there are more important things to consider, especially as it will probably be relatively complex to implement, and will probably not be used by the majority of users. but even if it takes a while or even if a single language is managed, it'll be great!
Author
Owner

@Xazin commented on GitHub (Oct 3, 2023):

This is quite complex, unless there is a service provider that can do this for us, then it is most likely not going to be prioritized in the near future.

The idea of hosting virtual machines with development environments setup, and supporting queued compilations/runs, and for it to be fast enough for the user to actually feel convenience, is not easy.

Not to mention the infrastructure and tooling are quite complex, and the reward of this is not something I believe would benefit AppFlowy or its users in the near future.

I know Replit used to offer an API, but they retired it approx. a year ago. Maybe there are other providers with a similar amount of language support?

Could possibly use something like Heroku (and it would most likely be super expensive), but I would have to research this a bit.

<!-- gh-comment-id:1745353189 --> @Xazin commented on GitHub (Oct 3, 2023): This is quite complex, unless there is a service provider that can do this for us, then it is most likely not going to be prioritized in the near future. The idea of hosting virtual machines with development environments setup, and supporting queued compilations/runs, and for it to be fast enough for the user to actually feel convenience, is not easy. Not to mention the infrastructure and tooling are quite complex, and the reward of this is not something I believe would benefit AppFlowy or its users in the near future. I know Replit used to offer an API, but they retired it approx. a year ago. Maybe there are other providers with a similar amount of language support? Could possibly use something like Heroku (and it would most likely be super expensive), but I would have to research this a bit.
Author
Owner

@annieappflowy commented on GitHub (Oct 4, 2023):

Hi @moolight-seashell , thanks for submitting this feature request.
Could you please share more about your use cases?
For example, what are you trying to achieve by running a script inside a doc?

<!-- gh-comment-id:1746801824 --> @annieappflowy commented on GitHub (Oct 4, 2023): Hi @moolight-seashell , thanks for submitting this feature request. Could you please share more about your use cases? For example, what are you trying to achieve by running a script inside a doc?
Author
Owner

@moolight-seashell commented on GitHub (Oct 5, 2023):

Allowing execution in block codes can do so many things that it would be difficult to cover them all.

in the case of jupyter notebook in python, it was used extensively by my teacher-researchers on AI (tensorflow), who used jupyter both as an explanatory document for their research and to integrate code and models directly into the document.

i only find these examples so :
https://jupyter.org/try-jupyter/retro/notebooks/?path=notebooks/Intro.ipynb
https://jupyter.org/try-jupyter/retro/notebooks/?path=notebooks/sqlite.ipynb

it can be used as a tutorial or code documentation, as you'll find more and more on all development sites.

https://www.geeksforgeeks.org/openai-python-api/#text

it can also be used as a simple calculation tool. For example, let's say I'm doing some DIY and I want to make an object of some kind, let's say a wardrobe, I can make a little script to automatically calculate the sizes of all my boards to obtain a piece of furniture of the desired size.
ok maybe not the greates example but you have the idea

in any cas allowing to execute code bloks can have a huge impact on how we can takes notes and it can drasticaly improve a wiki / documentation of something

<!-- gh-comment-id:1748469476 --> @moolight-seashell commented on GitHub (Oct 5, 2023): Allowing execution in block codes can do so many things that it would be difficult to cover them all. in the case of jupyter notebook in python, it was used extensively by my teacher-researchers on AI (tensorflow), who used jupyter both as an explanatory document for their research and to integrate code and models directly into the document. i only find these examples so : https://jupyter.org/try-jupyter/retro/notebooks/?path=notebooks/Intro.ipynb https://jupyter.org/try-jupyter/retro/notebooks/?path=notebooks/sqlite.ipynb it can be used as a tutorial or code documentation, as you'll find more and more on all development sites. https://www.geeksforgeeks.org/openai-python-api/#text it can also be used as a simple calculation tool. For example, let's say I'm doing some DIY and I want to make an object of some kind, let's say a wardrobe, I can make a little script to automatically calculate the sizes of all my boards to obtain a piece of furniture of the desired size. ok maybe not the greates example but you have the idea in any cas allowing to execute code bloks can have a huge impact on how we can takes notes and it can drasticaly improve a wiki / documentation of something
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1611
No description provided.