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 listTo 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;doneTo set the server timezone:
sudo timedatectl set-timezone America/Toronto
# to get a list of timezones: timedatectl list-timezonesKN_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.ioresolves to192.168.1.1.