New to Jupyter.
Want to embed code for illustration without execution in a Markdown cell.
http://jupyter-notebook.readthedocs.org/en/latest/examples/Notebook/rstversions/Working%20With%20Markdown%20Cells.html
This link basically says one may do it but does not say how to do it. It says for example to make the text a heading, you use the pound sign #
. But it does not say how to embed the code but just showed it is doable.
Tried to search online and find the same info as in the link provided.
On the GitHub Gist page, type a file name with the extension for the code you want to make and write down/paste the code. 4. In case you have the code saved as a file or a jupyter notebook (. ipynb file), you can directly drag-and-drop the file into the code section as shown, and create the gist.
Press Esc key, type m for markdown cell, press Enter key. The cursor is now in the markdown cell waiting for instructions. Type your code or paste a code block.
You can contain the code in three backslashes backticks. If you specify the language in the beginning it will also color code as usual.
e.g.
```python
from pyomo.environ import *
model = Concretemodel()
```
I am a new to Jupyter Notebook too, must say that their documentation is awful as they say what we can do instead of HOW to do it. I have opened already made '.ipynb' notebook and figured it out, I will list a couple of them from unexplained documentation:
*Italic*
**Bold**
-
1.
>
[Title of Section](#title-of-section)
[Text](URL)
I hope everyone has found their solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With