Skip to content

Latest commit

 

History

History

experiments

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Experimenter

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

Environment Variables

  • 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 can nip.io. For example 192-168-1-1.nip.io resolves to 192.168.1.1.