Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# to attach new bash sessions to docker container | |
# assumes that only one container is active, finds that containers id and attaches a new bash shell to it.. | |
attach_new_sess () { | |
sudo docker ps; | |
containerid=$(sudo docker ps | tail -1 | awk '{print $1}'); | |
echo "Extracted CONAINER ID: $containerid"; | |
echo "Spawning new bash shell in container..." | |
sudo docker exec -it $containerid bash; | |
} | |
alias ans='attach_new_sess' |
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 numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib | |
matplotlib.rcParams.update({'font.size': 14}) | |
# init figure | |
fig, ax = plt.subplots(1,1, figsize=(10,7)) | |
# generate artificial data | |
line_a = np.linspace(100, 0, 85) |