{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "a4b6b972", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Defaulting to user installation because normal site-packages is not writeable\n", "Collecting streamlit\n", " Downloading streamlit-1.22.0-py2.py3-none-any.whl (8.9 MB)\n", "Requirement already satisfied: click>=7.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (8.0.4)\n", "Requirement already satisfied: toml in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (0.10.2)\n", "Requirement already satisfied: protobuf<4,>=3.12 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (3.19.1)\n", "Collecting tzlocal>=1.1\n", " Downloading tzlocal-4.3-py3-none-any.whl (20 kB)\n", "Requirement already satisfied: packaging>=14.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (21.3)\n", "Requirement already satisfied: requests>=2.4 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (2.27.1)\n", "Requirement already satisfied: watchdog in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (2.1.6)\n", "Collecting gitpython!=3.1.19\n", " Downloading GitPython-3.1.31-py3-none-any.whl (184 kB)\n", "Requirement already satisfied: importlib-metadata>=1.4 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (4.11.3)\n", "Requirement already satisfied: pillow>=6.2.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (9.0.1)\n", "Collecting pympler>=0.9\n", " Using cached Pympler-1.0.1-py3-none-any.whl (164 kB)\n", "Collecting validators>=0.2\n", " Using cached validators-0.20.0.tar.gz (30 kB)\n", "Requirement already satisfied: python-dateutil in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (2.8.2)\n", "Collecting pydeck>=0.1.dev5\n", " Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)\n", "Requirement already satisfied: cachetools>=4.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (4.2.2)\n", "Collecting rich>=10.11.0\n", " Downloading rich-13.3.5-py3-none-any.whl (238 kB)\n", "Collecting blinker>=1.0.0\n", " Downloading blinker-1.6.2-py3-none-any.whl (13 kB)\n", "Requirement already satisfied: pandas<3,>=0.25 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (1.4.2)\n", "Requirement already satisfied: typing-extensions>=3.10.0.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (4.1.1)\n", "Collecting altair<5,>=3.2.0\n", " Downloading altair-4.2.2-py3-none-any.whl (813 kB)\n", "Requirement already satisfied: tornado>=6.0.3 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (6.1)\n", "Requirement already satisfied: tenacity<9,>=8.0.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (8.0.1)\n", "Collecting pyarrow>=4.0\n", " Downloading pyarrow-12.0.0-cp39-cp39-win_amd64.whl (21.5 MB)\n", "Requirement already satisfied: numpy in c:\\programdata\\anaconda3\\lib\\site-packages (from streamlit) (1.21.5)\n", "Requirement already satisfied: jsonschema>=3.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from altair<5,>=3.2.0->streamlit) (4.4.0)\n", "Requirement already satisfied: toolz in c:\\programdata\\anaconda3\\lib\\site-packages (from altair<5,>=3.2.0->streamlit) (0.11.2)\n", "Requirement already satisfied: entrypoints in c:\\programdata\\anaconda3\\lib\\site-packages (from altair<5,>=3.2.0->streamlit) (0.4)\n", "Requirement already satisfied: jinja2 in c:\\programdata\\anaconda3\\lib\\site-packages (from altair<5,>=3.2.0->streamlit) (2.11.3)\n", "Requirement already satisfied: colorama in c:\\programdata\\anaconda3\\lib\\site-packages (from click>=7.0->streamlit) (0.4.4)\n", "Collecting gitdb<5,>=4.0.1\n", " Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)\n", "Collecting smmap<6,>=3.0.1\n", " Using cached smmap-5.0.0-py3-none-any.whl (24 kB)\n", "Requirement already satisfied: zipp>=0.5 in c:\\programdata\\anaconda3\\lib\\site-packages (from importlib-metadata>=1.4->streamlit) (3.7.0)\n", "Requirement already satisfied: attrs>=17.4.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from jsonschema>=3.0->altair<5,>=3.2.0->streamlit) (21.4.0)\n", "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from jsonschema>=3.0->altair<5,>=3.2.0->streamlit) (0.18.0)\n", "Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\\programdata\\anaconda3\\lib\\site-packages (from packaging>=14.1->streamlit) (3.0.4)\n", "Requirement already satisfied: pytz>=2020.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas<3,>=0.25->streamlit) (2021.3)\n", "Requirement already satisfied: MarkupSafe>=0.23 in c:\\programdata\\anaconda3\\lib\\site-packages (from jinja2->altair<5,>=3.2.0->streamlit) (2.0.1)\n", "Requirement already satisfied: six>=1.5 in c:\\programdata\\anaconda3\\lib\\site-packages (from python-dateutil->streamlit) (1.16.0)\n", "Requirement already satisfied: idna<4,>=2.5 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.4->streamlit) (3.3)\n", "Requirement already satisfied: charset-normalizer~=2.0.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.4->streamlit) (2.0.4)\n", "Requirement already satisfied: certifi>=2017.4.17 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.4->streamlit) (2021.10.8)\n", "Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.4->streamlit) (1.26.9)\n", "Collecting pygments<3.0.0,>=2.13.0\n", " Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)\n", "Collecting markdown-it-py<3.0.0,>=2.2.0\n", " Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)\n", "Collecting mdurl~=0.1\n", " Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n", "Collecting pytz-deprecation-shim\n", " Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)\n", "Collecting tzdata\n", " Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)\n", "Requirement already satisfied: decorator>=3.4.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from validators>=0.2->streamlit) (5.1.1)\n", "Building wheels for collected packages: validators\n", " Building wheel for validators (setup.py): started\n", " Building wheel for validators (setup.py): finished with status 'done'\n", " Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19582 sha256=0edd46aba698f63ac8df7cdf3bf8ebd25eb1def0d8a101800c2fac5f90f1dcd3\n", " Stored in directory: c:\\users\\ndutt\\appdata\\local\\pip\\cache\\wheels\\2d\\f0\\a8\\1094fca7a7e5d0d12ff56e0c64675d72aa5cc81a5fc200e849\n", "Successfully built validators\n", "Installing collected packages: tzdata, smmap, mdurl, pytz-deprecation-shim, pygments, markdown-it-py, gitdb, validators, tzlocal, rich, pympler, pydeck, pyarrow, gitpython, blinker, altair, streamlit\n", "Successfully installed altair-4.2.2 blinker-1.6.2 gitdb-4.0.10 gitpython-3.1.31 markdown-it-py-2.2.0 mdurl-0.1.2 pyarrow-12.0.0 pydeck-0.8.1b0 pygments-2.15.1 pympler-1.0.1 pytz-deprecation-shim-0.1.0.post0 rich-13.3.5 smmap-5.0.0 streamlit-1.22.0 tzdata-2023.3 tzlocal-4.3 validators-0.20.0\n", "Note: you may need to restart the kernel to use updated packages.\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ " WARNING: The script pygmentize.exe is installed in 'C:\\Users\\ndutt\\AppData\\Roaming\\Python\\Python39\\Scripts' which is not on PATH.\n", " Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\n", " WARNING: The script markdown-it.exe is installed in 'C:\\Users\\ndutt\\AppData\\Roaming\\Python\\Python39\\Scripts' which is not on PATH.\n", " Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\n", " WARNING: The script streamlit.exe is installed in 'C:\\Users\\ndutt\\AppData\\Roaming\\Python\\Python39\\Scripts' which is not on PATH.\n", " Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\n", "ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n", "spyder 5.1.5 requires pyqt5<5.13, which is not installed.\n", "spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed.\n", "jupyter-server 1.13.5 requires pywinpty<2; os_name == \"nt\", but you have pywinpty 2.0.2 which is incompatible.\n" ] } ], "source": [ "pip install streamlit" ] }, { "cell_type": "code", "execution_count": 1, "id": "3025f80d", "metadata": {}, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 2, "id": "95f0ad82", "metadata": {}, "outputs": [], "source": [ "import streamlit as st" ] }, { "cell_type": "code", "execution_count": 8, "id": "7d09ff8c", "metadata": {}, "outputs": [], "source": [ "st.write(\"\"\"#Hello Darling\"\"\")" ] }, { "cell_type": "code", "execution_count": 5, "id": "82f2603c", "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Defaulting to user installation because normal site-packages is not writeable\n", "Collecting yfinance\n", " Downloading yfinance-0.2.18-py2.py3-none-any.whl (60 kB)\n", "Collecting multitasking>=0.0.7\n", " Using cached multitasking-0.0.11-py3-none-any.whl (8.5 kB)\n", "Collecting html5lib>=1.1\n", " Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)\n", "Collecting lxml>=4.9.1\n", " Downloading lxml-4.9.2-cp39-cp39-win_amd64.whl (3.9 MB)\n", "Collecting frozendict>=2.3.4\n", " Downloading frozendict-2.3.8-cp39-cp39-win_amd64.whl (35 kB)\n", "Requirement already satisfied: beautifulsoup4>=4.11.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from yfinance) (4.11.1)\n", "Requirement already satisfied: numpy>=1.16.5 in c:\\programdata\\anaconda3\\lib\\site-packages (from yfinance) (1.21.5)\n", "Requirement already satisfied: cryptography>=3.3.2 in c:\\programdata\\anaconda3\\lib\\site-packages (from yfinance) (3.4.8)\n", "Requirement already satisfied: requests>=2.26 in c:\\programdata\\anaconda3\\lib\\site-packages (from yfinance) (2.27.1)\n", "Requirement already satisfied: appdirs>=1.4.4 in c:\\programdata\\anaconda3\\lib\\site-packages (from yfinance) (1.4.4)\n", "Requirement already satisfied: pandas>=1.3.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from yfinance) (1.4.2)\n", "Collecting pytz>=2022.5\n", " Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)\n", "Requirement already satisfied: soupsieve>1.2 in c:\\programdata\\anaconda3\\lib\\site-packages (from beautifulsoup4>=4.11.1->yfinance) (2.3.1)\n", "Requirement already satisfied: cffi>=1.12 in c:\\programdata\\anaconda3\\lib\\site-packages (from cryptography>=3.3.2->yfinance) (1.15.0)\n", "Requirement already satisfied: pycparser in c:\\programdata\\anaconda3\\lib\\site-packages (from cffi>=1.12->cryptography>=3.3.2->yfinance) (2.21)\n", "Requirement already satisfied: six>=1.9 in c:\\programdata\\anaconda3\\lib\\site-packages (from html5lib>=1.1->yfinance) (1.16.0)\n", "Requirement already satisfied: webencodings in c:\\programdata\\anaconda3\\lib\\site-packages (from html5lib>=1.1->yfinance) (0.5.1)\n", "Requirement already satisfied: python-dateutil>=2.8.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas>=1.3.0->yfinance) (2.8.2)\n", "Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.26->yfinance) (1.26.9)\n", "Requirement already satisfied: idna<4,>=2.5 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.26->yfinance) (3.3)\n", "Requirement already satisfied: certifi>=2017.4.17 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.26->yfinance) (2021.10.8)\n", "Requirement already satisfied: charset-normalizer~=2.0.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from requests>=2.26->yfinance) (2.0.4)\n", "Installing collected packages: pytz, multitasking, lxml, html5lib, frozendict, yfinance\n", "Successfully installed frozendict-2.3.8 html5lib-1.1 lxml-4.9.2 multitasking-0.0.11 pytz-2023.3 yfinance-0.2.18\n", "Note: you may need to restart the kernel to use updated packages.\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ " WARNING: The script sample.exe is installed in 'C:\\Users\\ndutt\\AppData\\Roaming\\Python\\Python39\\Scripts' which is not on PATH.\n", " Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\n", "ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n", "conda-repo-cli 1.0.4 requires pathlib, which is not installed.\n" ] } ], "source": [ "pip install yfinance" ] }, { "cell_type": "code", "execution_count": 6, "id": "bae99c35", "metadata": {}, "outputs": [], "source": [ "import yfinance as yf\n", "import streamlit as st" ] }, { "cell_type": "code", "execution_count": 7, "id": "5ab74f0b", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "DeltaGenerator()" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "st.write(\"\"\"\n", "# Stock Price App for SasurMosai\n", "\n", "Shown are the stock closing price and volume of Google!\n", "\n", "\"\"\")\n", "tickerSymbol = 'GOOGL'\n", "#get data on this ticker\n", "tickerData = yf.Ticker(tickerSymbol)\n", "#get the historical prices for this ticker\n", "tickerDf = tickerData.history(period='1d', start='2010-5-31', end='2020-5-31')\n", "# Open\tHigh\tLow\tClose\tVolume\tDividends\tStock Splits\n", "\n", "st.line_chart(tickerDf.Close)\n", "st.line_chart(tickerDf.Volume)" ] }, { "cell_type": "code", "execution_count": 9, "id": "5b755578", "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXAAAAD4CAYAAAD1jb0+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly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Q72xkLADDIyJdQkuy1/RVJd0taJml9kodam2z+LJrLOR3jOOzDsZjBcZhR5jg4ecNlawBAAdyJCQBFEXAAKGpJBtz252w/ZPsV2yXeLtQmlkCQbK+3vdv2jq5n6ZLt423fZ3u6/39iTdczdcH2YbZ/Z/uP/ePwra5nGsaSDLikHZI+I2lT14MsNJZAeM31klZ1PcQisFfSlUk+IOkMSV9eov8e/iPp7CSnSjpN0irbZ3Q70mBLMuBJppN0fUdoV1gCQVKSTZKe63qOriV5Jsm2/tcvSJrWzF3WS0pmvNh/eEj/Y9G/w2NJBnyJO9ASCEvuPyzeyPa4pNMlbe54lE7YXmZ7u6TdkjYmWfTHocmt9Iua7V9Jes8BvnV1kjsWep5FZKglELC02D5S0q2SrkjyfNfzdCHJ/ySdZvtoSbfbPiXJon6N5C0b8CTndj3DIsUSCHgd24doJt43Jrmt63m6luSftu/XzGskizrgXEJZelgCAa+xbUnXSZpOcm3X83TFdq9/5i3bh0s6V9IjnQ41hCUZcNuftr1L0pmSNti+u+uZFkqSvZJeXQJhWtLPiyyB0CrbN0l6QNJJtnfZvrzrmTpylqRLJZ1te3v/4/yuh+rAsZLus/2gZk5yNia5q+OZBuJWegAoakmegQPAWwEBB4CiCDgAFEXAAaAoAg4ARRFwACiKgANAUf8HqgBjee9ChFEAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXAAAAD4CAYAAAD1jb0+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAALb0lEQVR4nO3dfYhldR3H8c+nXUVNQ2NvZa7TGIgkkhpDaUKBD7C5khUFSoqVMP/0sIZQK/4h/bdRSEFRDLkpJEr4gOJSupmyBLa1u222Oppim25auyLhQ5Ftfvpjru46r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AeM31klZ1PcQisFfSlUk+IOkMSV9eov8e/iPp7CSnSjpN0irbZ3Q70mBLMuBJppN0fUdoV1gCQVKSTZKe63qOriV5Jsm2/tcvSJrWzF3WS0pmvNh/eEj/Y9G/w2NJBnyJO9ASCEvuPyzeyPa4pNMlbe54lE7YXmZ7u6TdkjYmWfTHocmt9Iua7V9Jes8BvnV1kjsWep5FZKglELC02D5S0q2SrkjyfNfzdCHJ/ySdZvtoSbfbPiXJon6N5C0b8CTndj3DIsUSCHgd24doJt43Jrmt63m6luSftu/XzGskizrgXEJZelgCAa+xbUnXSZpOcm3X83TFdq9/5i3bh0s6V9IjnQ41hCUZcNuftr1L0pmSNti+u+uZFkqSvZJeXQJhWtLPiyyB0CrbN0l6QNJJtnfZvrzrmTpylqRLJZ1te3v/4/yuh+rAsZLus/2gZk5yNia5q+OZBuJWegAoakmegQPAWwEBB4CiCDgAFEXAAaAoAg4ARRFwACiKgANAUf8HqgBjee9ChFEAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# Draw a title and some text to the app:\n", "'''\n", "# This is the document title\n", "\n", "This is some _markdown_.\n", "'''\n", "\n", "import pandas as pd\n", "df = pd.DataFrame({'col1': [1,2,3]})\n", "df # 👈 Draw the dataframe\n", "\n", "x = 10\n", "'x', x # 👈 Draw the string 'x' and then the value of x\n", "\n", "# Also works with most supported chart types\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", "arr = np.random.normal(1, 1, size=100)\n", "fig, ax = plt.subplots()\n", "ax.hist(arr, bins=20)\n", "\n", "fig # 👈 Draw a Matplotlib chart" ] }, { "cell_type": "code", "execution_count": 10, "id": "655914d2", "metadata": {}, "outputs": [], "source": [ "import streamlit as st\n", "\n", "st.write('Hello, *World!* :sunglasses:')" ] }, { "cell_type": "code", "execution_count": null, "id": "10e790ca", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.12" } }, "nbformat": 4, "nbformat_minor": 5 }