diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..962c149 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "name": "Python 3", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", + "customizations": { + "codespaces": { + "openFiles": [ + "README.md", + "trader.py" + ] + }, + "vscode": { + "settings": {}, + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance" + ] + } + }, + "updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y 0: st.write( f"Short Ratio: {yahoo_ticker_info.get('shortRatio', 0):.2f} --- Short Percent of Float: {yahoo_ticker_info.get('shortPercentOfFloat', 0):.2%}" ) + def generate_share_url(): + base_url = "https://pittsburgh-trading-group-alpha.streamlit.app/" # Replace with your deployed app URL + params = f"?filter={st.session_state.selected_filter}" + return base_url + params + + if st.button("Share"): + # Generate share URL based on current state + share_url = generate_share_url() + st.write(f"Share this link: {share_url}") # Create table with stock price information price_table_html = f"""