This file contains 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 pandas as pd | |
import streamlit as st | |
def construct_timestamp_index(data: pd.DataFrame) -> pd.DataFrame: | |
data.index = pd.to_datetime(data['Timestamp (UTC)'], | |
format='%Y-%m-%d %H:%M:%S') | |
return data.drop(columns=['Timestamp (UTC)']) | |
def upload_csv(hint: str) -> pd.DataFrame: | |
uploaded_file = st.sidebar.file_uploader(label=hint) |
This file contains 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
streamlit run app_starter.py |
This file contains 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 streamlit as st | |
st.title('Crypto.com Numbers') |
This file contains 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
pip install streamlit |
This file contains 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
Show hidden characters
// devcontainer.json | |
{ | |
"name": "Awesome dev container", | |
"build": { | |
"dockerfile": "Dockerfile" | |
}, | |
"postStartCommand": "git config --global user.email \"${localEnv:VSCODE_CONTAINER_GIT_EMAIL}\" && git config --global user.name \"${localEnv:VSCODE_CONTAINER_GIT_USER}\"" | |
} |
This file contains 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
# .bashrc | |
export VSCODE_CONTAINER_GIT_USER="[email protected]" | |
export VSCODE_CONTAINER_GIT_EMAIL="Boba Coder" |
This file contains 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
git config --global user.email "[email protected]" | |
git config --global user.name "Boba Coder" |
This file contains 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
// devcontainer.json | |
{ | |
"name": "TensorFlow GPU", | |
"build": { | |
"dockerfile": "Dockerfile" | |
}, | |
"runArgs": ["--gpus=all"], | |
"remoteUser": "tfuser" | |
} |
This file contains 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
FROM tensorflow/tensorflow:latest-gpu-jupyter | |
RUN groupadd --gid 5000 tfuser \ | |
&& useradd --home-dir /home/tfuser --create-home --uid 5000 \ | |
--gid 5000 --shell /bin/sh --skel /dev/null tfuser | |
ENV SHELL /bin/bash | |
This file contains 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
FROM tensorflow/tensorflow:latest-gpu-jupyter | |
ENV SHELL /bin/bash |