-
Notifications
You must be signed in to change notification settings - Fork 392
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
Possibility of inline code? #498
Comments
Thank you @matthew-brett ! Very kind of you. Are you using Jupyter Notebook, or JupyterLab ? In the former you could use the python-markdown extension, and write
I think this also works with In JupyterLab there does not seem to be anything like this. So what people seem to be using is the following: they display Markdown text with the
and then they hide the input code for that cell. See for instance this blog post. Or you could also use
|
@matthew-brett also for your consideration https://myst-nb.readthedocs.io/en/latest/use/glue.html 😁 |
@matthew-brett , did you give a try to one of the above? Which is your favorite? |
Thanks for the follow up. Sorry not to get back to you, I was reflecting. I realize that my question wasn't properly considered. My use case is that I want to distribute notebooks as part of an interactive textbook; the textbook has the filled-in (executed) version, but the student downloaded the not-executed version. I think this means that neither of the two suggestions here are going to work well, because (I believe) they are both going to need the student to install extra stuff into their notebook setup. But on reflection - I don't see how Jupytext could solve that - except perhaps by allowing something like automatic translation of this in
into this in
Of course, this would have the same problem - that the Adding a reference to markdown-kernel here because of useful links therein. |
Hi @matthew-brett , well sure, we could think of translating |
Well - I think it wouldn't help me - at the moment - because of the problem of relying on a not-standard plugin. So maybe wait until someone screams on this thread? Maybe that will be me! But not yet. |
Haha... Sure! Then, if you don't mind maybe I'd prefer to close this thread for now, and anyone interested can either reopen of create a new follow-up. Is that ok with you? Thanks! |
Fine either way. I guess, if you leave it open, you signal that you're open to negotiation on this one. |
I see - indeed I like your question, so let's keep this open and see what we can do on the long term. |
I continue to use Jupytext all the time, and here's another thank you for the huge improvement it has made to my work.
I know this is a fraught question, but I really miss the R notebook ability to put code outputs inline, as in:
Do you think there is any way of doing that?
The text was updated successfully, but these errors were encountered: