To run a jupyter notebook while recording the new outputs:
jupyter nbconvert --to notebook --inplace --execute experiment.ipynb
# or the following if facing the kernel not found error:
# jupyter nbconvert --to notebook --inplace --ExecutePreprocessor.kernel_name=python3 --execute experiment.ipynb
# list of kernels:
# jupyter kernelspec list
To terminate pods that are stuck in Terminating
state:
# command:
for p in $(kubectl get pods | grep Terminating | awk '{print $1}'); do kubectl delete pod $p --grace-period=0 --force;done
# or add the following to `crontab -e` to run every minute
* * * * * for p in $(kubectl get pods | grep Terminating | awk '{print $1}'); do kubectl delete pod $p --grace-period=0 --force;done
To set the server timezone:
sudo timedatectl set-timezone America/Toronto
# to get a list of timezones: timedatectl list-timezones
KN_DOMAIN
: The domain under which your knative installation will live. If you don't have a domain name or are using local ip addresses, you cannip.io
. For example192-168-1-1.nip.io
resolves to192.168.1.1
.