|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": 4, |
| 6 | + "metadata": {}, |
| 7 | + "outputs": [ |
| 8 | + { |
| 9 | + "name": "stdout", |
| 10 | + "output_type": "stream", |
| 11 | + "text": [ |
| 12 | + "Library Versions:\n", |
| 13 | + "Streamlit: 1.36.0\n", |
| 14 | + "Pandas: 2.0.3\n", |
| 15 | + "Numpy: 1.23.5\n", |
| 16 | + "yfinance: 0.2.27\n", |
| 17 | + "Matplotlib: 3.7.2\n", |
| 18 | + "PyPortfolioOpt: 1.5.5\n", |
| 19 | + "datetime: Built-in module, version not applicable.\n" |
| 20 | + ] |
| 21 | + } |
| 22 | + ], |
| 23 | + "source": [ |
| 24 | + "import streamlit as st\n", |
| 25 | + "import pandas as pd\n", |
| 26 | + "import numpy as np\n", |
| 27 | + "import yfinance as yf\n", |
| 28 | + "import matplotlib\n", |
| 29 | + "import matplotlib.pyplot as plt\n", |
| 30 | + "import pypfopt\n", |
| 31 | + "\n", |
| 32 | + "def print_library_versions():\n", |
| 33 | + " print(\"Library Versions:\")\n", |
| 34 | + " print(f\"Streamlit: {st.__version__}\")\n", |
| 35 | + " print(f\"Pandas: {pd.__version__}\")\n", |
| 36 | + " print(f\"Numpy: {np.__version__}\")\n", |
| 37 | + " print(f\"yfinance: {yf.__version__}\")\n", |
| 38 | + " print(f\"Matplotlib: {matplotlib.__version__}\")\n", |
| 39 | + " print(f\"PyPortfolioOpt: {pypfopt.__version__}\")\n", |
| 40 | + " print(f\"datetime: Built-in module, version not applicable.\")\n", |
| 41 | + "\n", |
| 42 | + "if __name__ == \"__main__\":\n", |
| 43 | + " print_library_versions()\n" |
| 44 | + ] |
| 45 | + }, |
| 46 | + { |
| 47 | + "cell_type": "code", |
| 48 | + "execution_count": null, |
| 49 | + "metadata": {}, |
| 50 | + "outputs": [], |
| 51 | + "source": [] |
| 52 | + } |
| 53 | + ], |
| 54 | + "metadata": { |
| 55 | + "kernelspec": { |
| 56 | + "display_name": "backtest_dev", |
| 57 | + "language": "python", |
| 58 | + "name": "python3" |
| 59 | + }, |
| 60 | + "language_info": { |
| 61 | + "codemirror_mode": { |
| 62 | + "name": "ipython", |
| 63 | + "version": 3 |
| 64 | + }, |
| 65 | + "file_extension": ".py", |
| 66 | + "mimetype": "text/x-python", |
| 67 | + "name": "python", |
| 68 | + "nbconvert_exporter": "python", |
| 69 | + "pygments_lexer": "ipython3", |
| 70 | + "version": "3.9.17" |
| 71 | + }, |
| 72 | + "orig_nbformat": 4 |
| 73 | + }, |
| 74 | + "nbformat": 4, |
| 75 | + "nbformat_minor": 2 |
| 76 | +} |
0 commit comments