Note
Click here to download the full example code
Example Sphinx-Gallery demo¶
This tutorial is an example demo generated using Sphinx Gallery.
System Info¶
import platform
uname = platform.uname()
Let’s print out the system information.
print("="*20, "System Information", "="*20)
print(f"System: {uname.system}")
print(f"Node Name: {uname.node}")
print(f"Release: {uname.release}")
print(f"Version: {uname.version}")
print(f"Machine: {uname.machine}")
print(f"Processor: {uname.processor}")
Out:
==================== System Information ====================
System: Linux
Node Name: build-4138406-project-9734-xanaduai-pennylane-sphinx-theme
Release: 7.0.0-1004-aws
Version: #4-Ubuntu SMP PREEMPT Mon Apr 13 13:14:24 UTC 2026
Machine: x86_64
Processor: x86_64