-
Notifications
You must be signed in to change notification settings - Fork 64
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
Include variables inline #800
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
In the MyST ecosystem we have a couple of mechanisms for this; the substitutions syntax, which is not implemented in our myst-spec (that governs "official" features), and the To use In an executable notebook, you can use the The sum of 1 and 2 is {eval}`1 + 2`.
c.f. https://mystmd.org/guide/quickstart-jupyter-lab-myst#inline-expressions |
Thanks for your comment! I am happy to hear that the myst-cli will include tooling to execute code cells in the future. The So, to rephrase my problem slightly: I would love to have a way of rendering computational output (inline) without rendering the code that generated the output (either because it's hidden or because it lives somewhere else). Though, if I understand this roadmap correctly, that will come soon in the form of code-cells that can be hidden (a.k.a. Anyways, sounds like this will be implemented in some form or another 👍🏻 |
I looked through this issue and think it's actually a combination of several enhancement requests that could be tackled independently of one another, so I've opened up an issue for each:
Dos that sound correct to others? If so, could we close this issue in favor of those more precise follow-up issues? |
Proposal
It would be great if one could include computational output - stored either in a Jupyter notebook or a separate file - inline and formatted just as normal text.
Additional notes
It is already really great to be able to include figures from a notebook in a scientific article when using MyST. However, what's missing for me is to include results or variables inline with normal text.
E.g., when I write a manuscript like this
an I have the corresponding notebook cells, then I see this:
But I would like to include these numbers like so:
I have seen that there is the substitutions syntax in the MyST parser. Could this be used here as well to include data stored e.g. in a
variables.yaml
file?Another solution would be to allow inline references of just the output of a cell, rendered as if it were normal text.
Thanks for looking into this!
The text was updated successfully, but these errors were encountered: