-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Allow code to be executed in markdown blocks and insert result #1915
Comments
We've discussed this multiple times, and there's an extension that tries to do it. We don't want to implement it in the notebook directly until CommonMark agrees on a decent extension syntax for Markdown, so we're not just introducing extra ad-hoc additions to the markdown syntax. |
Ok thanks so much!
|
One other option is to use from IPython.display import Markdown
one = 1
two = 2
three = one + two
Markdown("# Title")
Markdown("""
# Math
## Addition
Here is a simple addition example: {one} + {two} = {three}
""".format(one=one, two=two, three=three)) There is an active discussion happening on ipython (ipython/ipython#2958) so let's close this and move the discussion over there. |
@takluyver Is there any update from the CommonMark front? |
I think you need this: neuron for Visual Studio Code it's powerful but still a little bit hard to use. hopefully, it can be better in the future so we can write jupyter notebook in vs code. |
I was thinking that for researchers who are doing analysis from within jupyter it would be really nice if the results from some computation could be automatically pasted into the textual discussion of the results. Assuming the delimiter & is used
Example
Consider the following function:
Let us now compute &
f(pi)
&=> 0
Here we've actually called a function from within a markdown block and inserted its result in place of the function call.
The text was updated successfully, but these errors were encountered: