Most applications in Linux will report the names of the two GPUs as follows.
- Dimgrey Cavefish is dGPU
- Yellow Carp is iGPU
# You need to put index.html.j2 & conf.json into a directory called, e.g., mytmpl/. | |
# Typical usage: The --no-prompt is important (layout is all messed up otherwise). | |
jupyter nbconvert MySuperNotebook.ipynb --to html --no-prompt --template mytmpl/ | |
# By default, all cells are hidden. You can override this behavior for some cells by giving them a 'code_shown' tag. |
Blog 2019/9/1
<- previous | index | next ->
updated 2025/4/9 to add a Python demo
""" | |
This gist shows how to run asyncio loop in a separate thread. | |
It could be useful if you want to mix sync and async code together. | |
Python 3.7+ | |
""" | |
import asyncio | |
from datetime import datetime | |
from threading import Thread | |
from typing import Tuple, List, Iterable |