import sys
from pathlib import Path
file = Path(__file__).resolve()
parent, root = file.parent, file.parents[1]
sys.path.append(str(root))

try:
    sys.path.remove(str(parent))
except ValueError: # Already removed
    pass

import streamlit as st
from util.release_helper import create_static_notes

VERSION = '.'.join(st.__version__.split('.')[:2])

previous_version = "0.76.0"
demo_pages = {}

st.set_page_config(
    page_title=f"New features in Streamlit {VERSION}",
    page_icon="random"
)

contributors = [
    "yashshah1",
]

intro = f"""
This release focused on stabilizing our code base with bug fixes and visual tweaks.
"""

release_notes = f"""
---
**Features**

- Added a new config option `client.showErrorDetails` allowing the developer to control the granularity of error messages. This is useful for when you deploy an app, and want to conceal from your users potentially-sensitive information contained in tracebacks.

**Notable bug fixes**

- Fixed [bug](https://github.com/streamlit/streamlit/issues/1957) where [`st.image`](https://docs.streamlit.io/en/0.77.0/api.html#streamlit.image) wasn't rendering certain kinds SVGs correctly.
- Fixed [regression](https://github.com/streamlit/streamlit/issues/2699) where the current value of an [`st.slider`](https://docs.streamlit.io/en/0.77.0/api.html#streamlit.slider) was only shown on hover.

"""
# End release updates

def draw_main_page():
    st.write(f"""
    # Welcome to Streamlit {VERSION}! 👋
    """)


    st.write(intro)

    st.write(release_notes)

    create_static_notes(contributors, previous_version, VERSION)


# Draw sidebar
pages = list(demo_pages.keys())

if len(pages):
    pages.insert(0, "Release Notes")
    st.sidebar.title(f"Streamlit v{VERSION} Demos")
    selected_demo = st.sidebar.radio("", pages)
else:
    selected_demo = "Release Notes"

# Draw main page
if selected_demo in demo_pages:
    demo_pages[selected_demo]()
else:
    draw_main_page()

import sys
from pathlib import Path
file = Path(__file__).resolve()
parent, root = file.parent, file.parents[1]
sys.path.append(str(root))

try:
    sys.path.remove(str(parent))
except ValueError: # Already removed
    pass

import streamlit as st
from util.release_helper import create_static_notes

VERSION = '.'.join(st.__version__.split('.')[:2])

previous_version = "0.76.0"
demo_pages = {}

st.set_page_config(
    page_title=f"New features in Streamlit {VERSION}",
    page_icon="random"
)

contributors = [
    "yashshah1",
]

intro = f"""
This release focused on stabilizing our code base with bug fixes and visual tweaks.
"""

release_notes = f"""
---
**Features**

- Added a new config option `client.showErrorDetails` allowing the developer to control the granularity of error messages. This is useful for when you deploy an app, and want to conceal from your users potentially-sensitive information contained in tracebacks.

**Notable bug fixes**

- Fixed [bug](https://github.com/streamlit/streamlit/issues/1957) where [`st.image`](https://docs.streamlit.io/en/0.77.0/api.html#streamlit.image) wasn't rendering certain kinds SVGs correctly.
- Fixed [regression](https://github.com/streamlit/streamlit/issues/2699) where the current value of an [`st.slider`](https://docs.streamlit.io/en/0.77.0/api.html#streamlit.slider) was only shown on hover.

"""
# End release updates

def draw_main_page():
    st.write(f"""
    # Welcome to Streamlit {VERSION}! 👋
    """)


    st.write(intro)

    st.write(release_notes)

    create_static_notes(contributors, previous_version, VERSION)


# Draw sidebar
pages = list(demo_pages.keys())

if len(pages):
    pages.insert(0, "Release Notes")
    st.sidebar.title(f"Streamlit v{VERSION} Demos")
    selected_demo = st.sidebar.radio("", pages)
else:
    selected_demo = "Release Notes"

# Draw main page
if selected_demo in demo_pages:
    demo_pages[selected_demo]()
else:
    draw_main_page()

# Already removed This release focused on stabilizing our code base with bug fixes and visual tweaks. --- **Features**  - Added a new config option `client.showErrorDetails` allowing the developer to control the granularity of error messages. This is useful for when you deploy an app, and want to conceal from your users potentially-sensitive information contained in tracebacks.  **Notable bug fixes**  - Fixed [bug](https://github.com/streamlit/streamlit/issues/1957) where [`st.image`](https://docs.streamlit.io/en/0.77.0/api.html#streamlit.image) wasn't rendering certain kinds SVGs correctly. - Fixed [regression](https://github.com/streamlit/streamlit/issues/2699) where the current value of an [`st.slider`](https://docs.streamlit.io/en/0.77.0/api.html#streamlit.slider) was only shown on hover. # End release updates # Welcome to Streamlit {VERSION}! 👋 # Draw sidebar # Draw main page