sr320 / course-fish546-2016

6 stars 5 forks source link

Recommended: List date and system info at beginning of Jupyter notebooks #71

Closed kubu4 closed 7 years ago

kubu4 commented 7 years ago

To aid with some troubleshooting (and, it's good practice), please add the date and system info at the beginning of Jupyter notebooks. Below are instructions to accomplish this for each type of operating system.

OSX

DATE %%bash date

SYSTEM INFO %%bash system_profiler SPSoftwareDataType

%%bash #Uses grep to exclude lines that display serial number and hardware UUID system_profiler SPHardwareDataType | grep -v [SH][ea]

Windows

DATE %%bash date

SYSTEM INFO !systeminfo

Linux

DATE %%bash date

SYSTEM INFO %%bash uname -a

%%bash lscpu