Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save erdmann/713f0d3e28407ad94d73714e8af7083a to your computer and use it in GitHub Desktop.
Save erdmann/713f0d3e28407ad94d73714e8af7083a to your computer and use it in GitHub Desktop.
Using ipywidgets and asyncio, it's easy to tap into the existing asynchronous event loop in Jupyter to make a cell that periodically monitors the output of a shell command (such as nvidia-smi) while you go about your work.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment