|
You are here |
koaning.io | ||
| | | | |
www.janmeppe.com
|
|
| | | | | In this blog post, I'll tell you how to add a new kernel to your Jupyter notebook in just 3 simple steps. | |
| | | | |
kishstats.com
|
|
| | | | | Autoenv will automatically execute certain commands whenever you "cd" into a directory containing a ".env" file. This is an excellent command-line tool for e... | |
| | | | |
www.silveiraneto.net
|
|
| | | | | ||
| | | | |
www.paepper.com
|
|
| | | When you are prototyping and developing small scripts that you keep running, it might be annoying that they quit when an error occurs. If you want very basic robustness against these crashes, you can at least use a bash script to automatically restart your script on error. The tool to use here is called until and makes this a breeze. Let's use a dumb example Python script called test.py: import time while True: print('Looping') time.sleep(5) raise Exception('Exception in loop') It is in a loop and crashes every 5 seconds, so we can verify that our restart procedure works as expected. | ||