Skip to article frontmatterSkip to article content

Trying out codeblocks

Python codeblock¶

my-program.py
1
2
3
4
5
6
from discretize import TensorMesh

hx = [(1, 40)]
hy = [(1, 40)]

mesh = TensorMesh([hx, hy])

Code 1:Creating a TensorMesh using SimPEG

my-program.py
3
4
5
6
hx = [(1, 40)]
hy = [(1, 40)]

mesh = TensorMesh([hx, hy])

Code 2:only taking parts

In the Program 1, we create a mesh for simulation using SimPEG.

KaTeX example¶

Mermaid diagram¶