From bf9403da2ec3f7fb4207ad92c0f12778670cab82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Thu, 22 Jun 2023 15:50:40 +0200
Subject: [PATCH] Add some extra information.

---
 examples/streamlit/playground.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/examples/streamlit/playground.py b/examples/streamlit/playground.py
index 8603b62..af02277 100644
--- a/examples/streamlit/playground.py
+++ b/examples/streamlit/playground.py
@@ -14,14 +14,19 @@ data = create_data()
 
 def setup_main_frame():
     st.title("Welcome to the :green[enstools-compression] playground!")
+    st.markdown("Find more information our [**GitHub repository**](https://github.com/wavestoweather/enstools-compression)"
+                " or in our [**documentation**](https://enstools-compression.readthedocs.io)")
     with st.sidebar:
         select_dataset(data)
         slice_selection = select_slice(data)
 
     st.markdown("---")
+    if data.reference_da is None:
+        st.markdown("## :point_left: Please :red[select a dataset] using the left sidebar!")
+        return
+
     options = ["Compression", "Advanced Compression", "Analysis"]
     basic, advanced, analysis = st.tabs(options)
-
     with basic:
         basic_section(data=data, slice_selection=slice_selection)
         with st.spinner():
-- 
GitLab