mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #3555] [FR] Executing code blocks #1611
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#1611
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
@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!
@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.
@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?
@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