Skip to content

Commit

Permalink
Show the Python version used
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Dec 24, 2024
1 parent f84367b commit 83b14b2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/exercises/prerequisite.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ $ conda install obspy cartopy jupyterlab
在 JupyterLab 中新建一个 Notebook,并在 Notebook 中执行如下命令以检查当前环境。

```{code-cell} ipython3
import platform
import obspy
import matplotlib
import numpy
import cartopy
print("ObsPy version:", obspy.__version__)
print("Matplotlib version:", matplotlib.__version__)
print("NumPy version:", numpy.__version__)
print("cartopy version:", cartopy.__version__)
print("Python: ", platform.python_version())
print("ObsPy: ", obspy.__version__)
print("Matplotlib: ", matplotlib.__version__)
print("NumPy: ", numpy.__version__)
print("cartopy: ", cartopy.__version__)
```

0 comments on commit 83b14b2

Please sign in to comment.