-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support named blocks #16
Comments
Hello Lukas, thanks for the suggestion! I can see another approach here: currently Python code is executed in the same process, with |
Hello, thanks for the reply. Honestly speaking, I am not able to judge your answer because I do not understand it :) I wrote a simple workaround in the way which I suggested in my original file (all the code is copied and run multiple times). It is not the best solution but it should work as a temporary one if anyone needs the same feature. It takes a file such as
and converts it to
The original file should start with a dot because otherwise it will be run and resulted in an error (files starting with a dot are ignored). Here is the code to convert the files.
|
Try out v1.4.0: https://pawamoy.github.io/markdown-exec/usage/#sessions |
Hello, thanks a lot for the nice package. I would like to ask whether it is possible to use/add named blocks similarly to Julia Documenter.jl. I mean that I declare a variable in one block
and then use it in another block
I believe that this could be done by merging the blocks with the same name. Probably not the most time-efficient way as some code would be evaluated multiple times but it should work :)
Thanks a lot,
Lukas
The text was updated successfully, but these errors were encountered: