This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import datetime | |
import threading | |
# Global flag to control the thread's execution | |
keep_alive_thread_running = False | |
keep_alive_thread = None # To store the thread object | |
def keep_colab_active_target(): | |
global keep_alive_thread_running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable the subsequent settings only in interactive sessions | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
# Path to your oh-my-bash installation. | |
export OSH='/home/darren/.oh-my-bash' | |
# Set name of the theme to load. Optionally, if you set this to "random" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.9' | |
services: | |
jupyter: | |
environment: | |
JUPYTER_ENABLE_LAB: yes | |
CHOWN_HOME: yes # Next three env vars are needed to fix permission issues on WSL | |
CHOWN_HOME_OPTS: '-R' | |
JUPYTER_ALLOW_INSECURE_WRITES: true | |
image: jupyter/scipy-notebook | |
container_name: scipy-lab |