question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simpler code blocks

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjsewellcommented, May 7, 2020

another feature I’ve been long missing is side by side code blocks

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)

1reaction
certikcommented, May 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found