Simpler code blocks
See original GitHub issueWhen looking at https://github.com/executablebooks/MyST-Parser/blob/f32bd380bdec755238566fa91352f9ed1d491036/docs/examples/wealth_dynamics_md.md, currently the code blocks are done as follows:
```{code-block} python
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import quantecon as qe
from numba import njit, jitclass, float64, prange
```
Would it make sense to for the following to be a shortcut for the above:
```python
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import quantecon as qe
from numba import njit, jitclass, float64, prange
```
As that is the common syntax to denote code blocks at GitHub / GitLab, etc.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Downloads - Code::Blocks
This is the easy way for installing Code::Blocks. Download the setup file, run it on your computer and Code::Blocks will be installed, ready...
Read more >Code::Blocks download | SourceForge.net
Code ::Blocks is a free, open-source, cross-platform C, C++ and Fortran IDE built to meet the most demanding needs of its users.
Read more >Create a CodeBlocks House in minutes! Great for beginners!
Codeblocks is a neat way to learn coding and create an amazing house. This lesson is fun, open ended and great for beginners....
Read more >What is Code::Blocks? And How to Use it? - Level Up Coding
CodeBlocks is a cross-platform C++ IDE (Integrated Development Environment) that allows developers to code, debug, build, run and deploy projects. It provides ...
Read more >Google Docs rolling out code blocks for easier formatting ...
Once rolled out, paste/write your code and then Insert > Building blocks, which will offer a new “Code block” menu. The five available...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI @certik you may also want to check out the https://sphinx-panels.readthedocs.io extension for this use case, which I’ve literally just created this week for another project 😁 (as with any sphinx directive, it can also be used in MyST)
Btw, another feature I’ve been long missing is side by side code blocks, which you also implemented. Very exciting, I can now convert this page: https://www.fortran90.org/src/rosetta.html which was a pain to maintain in rst.