Adding cell context. (like pkg mode or other function style contexts) #944
Unanswered
rapus95
asked this question in
Pluto development
Replies: 1 comment 1 reply
-
I am not sure what you mean. You can already use macros, function contexts, etc in Pluto cells:
which is very cool! Can you edit your suggestion to be specific about how it differs from this existing functionality? Are you talking about a new GUI element? What do you mean with "automatically"? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It'd be awesome if individual cells could be executed within a certain (user-defined) context.
As a very basic example there's the RCall macro
R"some arbitrary r code"
which executes R code. And there's also the package mode macropkg"add x"
. If I now could select to have a cell in R context, that is, automatically wrapped in R_str macro, that would be very cool. Other situations that come up to my mind could be a filehandler etc.Idea on how to integrate user-defined context types:
Have 2 types of context:
In order to have it still be ordinary julia code files, that context object follows the code pattern:
macro context:
@macro(cell content)
function context:
This is a very basic and first draw on such context mode and I'd really love if it'd at least be considered :D
Beta Was this translation helpful? Give feedback.
All reactions