3/18/2024 0 Comments Create table in markdown jupyter![]() To clarify - that is the case for an R notebook. It would also make it harder, and perhaps invalid, to view the inline values in the notebook while in the interactive interfaces, and I think that would make it less useful. making the R workspace accessible within Python via Rpy2 or similar.įor execution order, it seems to me that leaving the inline rendering to the post-processing step would condemn us to to the kind of hoops that the Glue construct has to jump through. Although I guess that could be achieved by some bridge between the languages - e.g. I feel like this one could be a UI-specific choice, so long as the expected behavior of inline execution syntax was explicitly defined in the syntax.įor syntax - I suspect it would be frustrating to disallow more than one language for the inline values. Does inline markdown execution happen whenever a markdown cell is rendered? Does it occur across all markdown cells every time a code cell is updated? Does the interactive renderer just display a placeholder that tells the author “this will be executed if you ever run the code top to bottom”. Interactive rendering logicįinally there’s the question of how this should behave in an interactive environment. Then the interactive interfaces could decide how they wanted things to behave. Then would the two values of a be the same or different in the markdown cells? I think it would be important to define this outside the context of an interactive session first. AKA, if there were a notebook that had: (in a code cell) I think the big question there might be whether inline execution follows the same order of execution as code cells, or if it is more like a post-processing step. While the post-processing quick fix could make sense for a book, you really need real-time notebook rendering support for computational narratives, so that values referred to in Markdown cells reflect the state of the kernel.īeing able to write something like the following is tremendously useful: In the above example, the table has would be treated differently from code cells. ![]() I think this is an essential feature for writing computational narratives and for publishing books. I am curious what others think about this - would it be useful? Does it seem sensible? Related topics ![]() I don’t think this would be possible currently with nbclient because it doesn’t give you the state of the live kernel after executing the notebook, but maybe it wouldn’t be too difficult to extend somehow? Thoughts? Then downstream packages can do what they want with this metadata.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |