Skip to content

Instantly share code, notes, and snippets.

View stefsmeets's full-sized avatar

Stef Smeets stefsmeets

  • Netherlands eScience Center
  • Amsterdam, NL
View GitHub Profile
@stefsmeets
stefsmeets / importable_config_object_overview.ipynb
Last active October 23, 2020 10:22
ESMValCore config API overview
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefsmeets
stefsmeets / Scenario 1.ipynb
Last active November 12, 2020 15:02
ESMValTool API notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefsmeets
stefsmeets / Scenario 2.ipynb
Last active November 6, 2020 15:42
ESMValTool API notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefsmeets
stefsmeets / importable_config_object_overview-ep-2.ipynb
Created November 20, 2020 13:54
Demo of interactive config API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefsmeets
stefsmeets / find and list recipes in notebook.ipynb
Last active December 16, 2020 14:40
List ESMValTool recipes in a notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefsmeets
stefsmeets / Run recipe.ipynb
Last active January 6, 2021 11:32
run recipe in a notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefsmeets
stefsmeets / Run recipe get output.ipynb
Last active January 22, 2021 14:46
Get recipe output from notebook API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefsmeets
stefsmeets / Run recipe single diagnostic.ipynb
Created January 27, 2021 13:16
Run recipe single diagnostic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
from scipy.stats import norm
import matplotlib.pyplot as plt
mu_in = 5
std_in = 5.0
size = 100
def norm_dist(mu, std, size=100):
"""Generate normal distribution."""
import numpy as np
from scipy.stats import norm
import matplotlib.pyplot as plt
import streamlit as st
st.title('Normal distribution')
mu_in = st.slider('Mean', value=5, min_value=-10, max_value=10)
std_in = st.slider('Standard deviation', value=5.0, min_value=0.0, max_value=10.0)
size = st.slider('Number of samples', value=100, max_value=500)