Skip to content

Instantly share code, notes, and snippets.

AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: Event handler Lambda Function URL
Globals:
Function:
Timeout: 5
Runtime: python3.12
Tracing: Active
Environment:
@rbarman
rbarman / recipe.py
Last active January 19, 2019 02:20
Tensorboard on google colab
# imports, etc
from keras.callbacks import TensorBoard
# install ngrok
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
!unzip ngrok-stable-linux-amd64.zip
# specify the log location
LOG_DIR = './log'
get_ipython().system_raw(f'tensorboard --logdir {LOG_DIR} --host 0.0.0.0 --port 6006 &')