Streamlit python app to show simple exoplanets plot
License: MIT
ubuntu2004
# file exoplanets-per-year.py12# run this from a cocalc terminal with3# streamlit run exoplanets-per-year.py4# make sure you have baseUrlPath set as in5# https://doc.cocalc.com/howto/streamlit.html6# after launching streamlit, point your browser at7# https://cocalc.com/<project-id>/port/8501/89import streamlit as st10import pandas as pd11import seaborn as sns12import matplotlib13from matplotlib.figure import Figure1415st.markdown('# Exoplanets Found Each Year')1617# csv file is generated here:18# https://cocalc.com/drxyzzy/experimental/exoplanets1920df = pd.read_csv("exo.csv")21fig = Figure()22ax = fig.subplots()23g = sns.barplot(x=df['year'],24y=df['count'], ax=ax)25#g.set_yscale("log")26ax.set_xlabel('Year')27ax.set_ylabel('Number of exoplanets confirmed')28ax.set_xticklabels(ax.get_xticklabels(),rotation = 80)29st.pyplot(fig)30313233