!pip show pandas runs a shell command to display pandas installation in my laptop or desktop environment.
Name: pandas Version: 2.3.3 Summary: Powerful data structures for
data analysis, time series, and statistics Home-page: https://pandas.pydata.org Author: Author-email: The Pandas Development TeamLicense: BSD 3-Clause License Location: c:\users\xxxxx\anaconda3\envs
\py310\lib\site-packages Requires: numpy, python-dateutil, pytz,
tzdata Required-by: catboost, plotly-express,
seaborn, statsmodels
!pip show numpy runs a shell command to display numpy installation in my laptop or desktop environment.
Name: numpy Version: 2.2.6 Summary: Fundamental package for array
computing in Python Home-page: https://numpy.org Author: Travis E. Oliphant et al. Author-email: License: Copyright (c) 2005-2024,
NumPy Developers. Location: c:\users\xxxxx\anaconda3\envs
\py310\lib\site-packages Requires: Required-by: catboost, contourpy, h5py, ipympl, keras, lightgbm, matplotlib,
ml_dtypes, pandas, patsy, plotly-express, scikit-learn,
scipy, seaborn, statsmodels, tensorflow, xgboost
!pip show python-dateutil runs a shell command to display python-dateutil installation in my laptop or desktop environment.
Name: python-dateutil Version: 2.9.0.post0 Summary: Extensions to the standard Python datetime module Home-page: https://github.com/dateutil /dateutil Author: Gustavo Niemeyer Author-email: gustavo@niemeyer.net Location: c:\users\xxxxx\anaconda3\envs
\py310\lib\site-packages Requires: six Required-by: arrow, jupyter_client, matplotlib, pandas
!pip show pytz runs a shell command to display pytz installation in my laptop or desktop environment.
Name: pytz Version: 2026.2 Summary: World timezone definitions, modern and historical Home-page: http://pythonhosted.org/pytz Author: Stuart Bishop Author-email: stuart@stuartbishop.net License: MIT Location: c:\users\xxxxx\anaconda3\envs
\py310\lib\site-packages Requires: Required-by: pandas
!pip show tzdata runs a shell command to display tzdata installation in my laptop or desktop environment.
Name: tzdata Version: 2026.2 Summary: Provider of IANA time zone data Home-page: https://github.com/python /tzdata Author: Python Software Foundation Author-email: datetime-sig@python.org License: Apache-2.0 Location: c:\users\xxxxx\anaconda3\envs
\py310\lib\site-packages
Requires: Required-by: arrow, pandas
!pip show catboost runs a shell command to display catboost installation in my laptop or desktop environment.
Name: catboost Version: 1.2.10 Summary: CatBoost Python Package Home-page: https://catboost.ai Author: CatBoost Developers Author-email: License: Apache License, Version 2.0 Location: c:\users\xxxxx\anaconda3\envs
\py310\lib\site-packages
Requires: graphviz, matplotlib, numpy, pandas, plotly, scipy, six Required-by:
!pip show plotly-express runs a shell command to display plotly-express installation in my laptop or desktop environment.
Name: plotly-express Version: 0.4.1 Summary: Plotly Express - a high level wrapper for Plotly.py Home-page: https://plotly.express/ Author: Nicolas Kruchten Author-email: nicolas@plot.ly License: MIT Location: c:\users\xxxxx\anaconda3\envs \py310\lib\site-packages Requires: numpy, pandas, patsy, plotly, scipy, statsmodels Required-by:
!pip show seaborn runs a shell command to display seaborn installation in my laptop or desktop environment.
Name: seaborn Version: 0.13.2 Summary: Statistical data visualization Home-page: Author: Author-email: Michael WaskomLicense: Location: c:\users\xxxxx\anaconda3\envs \py310\lib\site-packages Requires: matplotlib, numpy, pandas Required-by:
!pip show statsmodels runs a shell command to display statsmodels installation in my laptop or desktop environment.
Name: statsmodels Version: 0.14.6 Summary: Statistical computations and models for Python Home-page: https://www.statsmodels.org/ Author: Author-email: License: BSD License Location: c:\users\xxxxx\anaconda3\ envs\py310\lib\site-packages Requires: numpy, packaging, pandas, patsy, scipy Required-by: plotly-express!pip list pandas
!pip list pandas runs a shell command to display a full list of installed packages in my laptop or desktop environment.
Package Version ------------------------- ----------- absl-py 2.4.0 anyio 4.13.0 argon2-cffi 25.1.0 argon2-cffi-bindings 25.1.0 arrow 1.4.0 asttokens 3.0.1 astunparse 1.6.3 async-lru 2.3.0 attrs 26.1.0 babel 2.18.0 beautifulsoup4 4.14.3 bleach 6.3.0 blinker 1.9.0 catboost 1.2.10 certifi 2026.4.22 cffi 2.0.0 charset-normalizer 3.4.7 click 8.3.3 colorama 0.4.6 comm 0.2.3 contourpy 1.3.2 cycler 0.12.1 dash 4.1.0 debugpy 1.8.20 decorator 5.2.1 defusedxml 0.7.1 et_xmlfile 2.0.0 exceptiongroup 1.3.1 executing 2.2.1 fastjsonschema 2.21.2 Flask 3.1.3 flatbuffers 25.12.19 fonttools 4.63.0 fqdn 1.5.1 gast 0.7.0 google-pasta 0.2.0 graphviz 0.21 greenlet 3.5.0 grpcio 1.80.0 h11 0.16.0 h5py 3.14.0 httpcore 1.0.9 httpx 0.28.1 idna 3.15 importlib_metadata 9.0.0 ipykernel 7.2.0 ipympl 0.10.0 ipython 8.39.0 ipywidgets 8.1.8 isoduration 20.11.0 itsdangerous 2.2.0 jedi 0.20.0 Jinja2 3.1.6 joblib 1.5.3 json5 0.14.0 jsonpointer 3.1.1 jsonschema 4.26.0 jsonschema-specifications 2025.9.1 jupyter 1.1.1 jupyter_client 8.8.0 jupyter-console 6.6.3 jupyter_core 5.9.1 jupyter-events 0.12.1 jupyter-lsp 2.3.1 jupyter_server 2.18.2 jupyter_server_terminals 0.5.4 jupyterlab 4.5.7 jupyterlab_pygments 0.3.0 jupyterlab_server 2.28.0 jupyterlab_widgets 3.0.16 keras 3.12.2 kiwisolver 1.5.0 lark 1.3.1 libclang 18.1.1 lightgbm 4.6.0 lxml 6.1.0 markdown-it-py 4.2.0 MarkupSafe 3.0.3 matplotlib 3.10.9 matplotlib-inline 0.2.2 mdurl 0.1.2 mistune 3.2.1 ml_dtypes 0.5.4 namex 0.1.0 narwhals 2.21.0 nbclient 0.10.4 nbconvert 7.17.1 nbformat 5.10.4 nest-asyncio 1.6.0 notebook 7.5.6 notebook_shim 0.2.4 numpy 2.2.6 openpyxl 3.1.5 opt_einsum 3.4.0 optree 0.19.1 overrides 7.7.0 packaging 26.0 pandas 2.3.3 pandocfilters 1.5.1 parso 0.8.7 patsy 1.0.2 pillow 12.2.0 pip 26.0.1 platformdirs 4.9.6 plotly 6.7.0 plotly-express 0.4.1 prometheus_client 0.25.0 prompt_toolkit 3.0.52 protobuf 7.34.1 psutil 7.2.2 pure_eval 0.2.3 pycparser 3.0 Pygments 2.20.0 pyparsing 3.3.2 python-dateutil 2.9.0.post0 python-json-logger 4.1.0 pytz 2026.2 pywinpty 3.0.3 PyYAML 6.0.3 pyzmq 27.1.0 referencing 0.37.0 requests 2.34.2 retrying 1.4.2 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rfc3987-syntax 1.1.0 rich 15.0.0 rpds-py 0.30.0 scikit-learn 1.7.2 scipy 1.15.3 seaborn 0.13.2 Send2Trash 2.1.0 setuptools 82.0.1 six 1.17.0 soupsieve 2.8.3 SQLAlchemy 2.0.49 stack-data 0.6.3 statsmodels 0.14.6 tensorflow 2.21.0 termcolor 3.3.0 terminado 0.18.1 threadpoolctl 3.6.0 tinycss2 1.4.0 tomli 2.4.1 tornado 6.5.5 traitlets 5.15.0 typing_extensions 4.15.0 tzdata 2026.2 uri-template 1.3.0 urllib3 2.7.0 wcwidth 0.7.0 webcolors 25.10.0 webencodings 0.5.1 websocket-client 1.9.0 Werkzeug 3.1.8 wheel 0.46.3 widgetsnbextension 4.0.15 wrapt 2.1.2 xgboost 3.2.0 zipp 3.23.1
!pip list --outdated runs a shell command to display a full list of outdated and the new version of installed packages in my laptop or desktop environment.
Package Version Latest Type --------- ------- ------ ----- click 8.3.3 8.4.0 wheel decorator 5.2.1 5.3.0 wheel h5py 3.14.0 3.16.0 wheel narwhals 2.21.0 2.21.2 wheel packaging 26.0 26.2 wheel pip 26.0.1 26.1.1 wheel tinycss2 1.4.0 1.5.1 wheel wheel 0.46.3 0.47.0 wheel
!pip list --format=json runs a shell command to display a full list of packages in json format of installed packages in my laptop or desktop environment.
[{"name": "absl-py", "version": "2.4.0"}, {"name": "anyio", "version": "4.13.0"}, {"name": "argon2-cffi",
"version": "25.1.0"}, {"name": "argon2-cffi-bindings", "version": "25.1.0"}, {"name": "arrow", "version":
"1.4.0"}, {"name": "asttokens", "version": "3.0.1"}, {"name": "astunparse", "version": "1.6.3"}, {"name":
"async-lru", "version": "2.3.0"}, {"name": "attrs", "version": "26.1.0"}, {"name": "babel", "version":
"2.18.0"}, {"name": "beautifulsoup4", "version": "4.14.3"}, {"name": "bleach", "version": "6.3.0"}, {"name":
"blinker", "version": "1.9.0"}, {"name": "catboost", "version": "1.2.10"}, {"name": "certifi", "version":
"2026.4.22"}, {"name": "cffi", "version": "2.0.0"}, {"name": "charset-normalizer", "version": "3.4.7"}, {"name":
"click", "version": "8.3.3"}, {"name": "colorama", "version": "0.4.6"}, {"name": "comm", "version":
"0.2.3"}, {"name": "contourpy", "version": "1.3.2"}, {"name": "cycler", "version": "0.12.1"}, {"name":
"dash", "version": "4.1.0"}, {"name": "debugpy", "version": "1.8.20"}, {"name": "decorator", "version":
"5.2.1"}, {"name": "defusedxml", "version": "0.7.1"}, {"name": "et_xmlfile", "version": "2.0.0"}, {"name":
"exceptiongroup", "version": "1.3.1"}, {"name": "executing", "version": "2.2.1"}, {"name":
"fastjsonschema", "version": "2.21.2"}, {"name": "Flask", "version": "3.1.3"}, {"name": "flatbuffers", "version":
"25.12.19"}, {"name": "fonttools", "version": "4.63.0"}, {"name": "fqdn", "version": "1.5.1"}, {"name":
"gast", "version": "0.7.0"}, {"name": "google-pasta", "version": "0.2.0"}, {"name": "graphviz", "version":
"0.21"}, {"name": "greenlet", "version": "3.5.0"}, {"name": "grpcio", "version": "1.80.0"}, {"name":
"h11", "version": "0.16.0"}, {"name": "h5py", "version": "3.14.0"}, {"name": "httpcore", "version":
"1.0.9"}, {"name": "httpx", "version": "0.28.1"}, {"name": "idna", "version": "3.15"}, {"name":
"importlib_metadata", "version": "9.0.0"}, {"name": "ipykernel", "version": "7.2.0"}, {"name":
"ipympl", "version": "0.10.0"}, {"name": "ipython", "version": "8.39.0"}, {"name": "ipywidgets", "version":
"8.1.8"}, {"name": "isoduration", "version": "20.11.0"}, {"name": "itsdangerous", "version":
"2.2.0"}, {"name": "jedi", "version": "0.20.0"}, {"name": "Jinja2", "version": "3.1.6"}, {"name":
"joblib", "version": "1.5.3"}, {"name": "json5", "version": "0.14.0"}, {"name": "jsonpointer", "version":
"3.1.1"}, {"name": "jsonschema", "version": "4.26.0"}, {"name": "jsonschema-specifications", "version":
"2025.9.1"}, {"name": "jupyter", "version": "1.1.1"}, {"name": "jupyter_client", "version": "8.8.0"}, {"name":
"jupyter-console", "version": "6.6.3"}, {"name": "jupyter_core", "version": "5.9.1"}, {"name":
"jupyter-events", "version": "0.12.1"}, {"name": "jupyter-lsp", "version": "2.3.1"}, {"name":
"jupyter_server", "version": "2.18.2"}, {"name": "jupyter_server_terminals", "version": "0.5.4"}, {"name":
"jupyterlab", "version": "4.5.7"}, {"name": "jupyterlab_pygments", "version": "0.3.0"}, {"name":
"jupyterlab_server", "version": "2.28.0"}, {"name": "jupyterlab_widgets", "version": "3.0.16"}, {"name":
"keras", "version": "3.12.2"}, {"name": "kiwisolver", "version": "1.5.0"}, {"name": "lark", "version":
"1.3.1"}, {"name": "libclang", "version": "18.1.1"}, {"name": "lightgbm", "version": "4.6.0"}, {"name":
"lxml", "version": "6.1.0"}, {"name": "markdown-it-py", "version": "4.2.0"}, {"name": "MarkupSafe", "version":
"3.0.3"}, {"name": "matplotlib", "version": "3.10.9"}, {"name": "matplotlib-inline", "version":
"0.2.2"}, {"name": "mdurl", "version": "0.1.2"}, {"name": "mistune", "version": "3.2.1"}, {"name":
"ml_dtypes", "version": "0.5.4"}, {"name": "namex", "version": "0.1.0"}, {"name": "narwhals", "version":
"2.21.0"}, {"name": "nbclient", "version": "0.10.4"}, {"name": "nbconvert", "version": "7.17.1"}, {"name":
"nbformat", "version": "5.10.4"}, {"name": "nest-asyncio", "version": "1.6.0"}, {"name": "notebook", "version":
"7.5.6"}, {"name": "notebook_shim", "version": "0.2.4"}, {"name": "numpy", "version": "2.2.6"}, {"name":
"openpyxl", "version": "3.1.5"}, {"name": "opt_einsum", "version": "3.4.0"}, {"name": "optree", "version":
"0.19.1"}, {"name": "overrides", "version": "7.7.0"}, {"name": "packaging", "version": "26.0"}, {"name":
"pandas", "version": "2.3.3"}, {"name": "pandocfilters", "version": "1.5.1"}, {"name": "parso", "version":
"0.8.7"}, {"name": "patsy", "version": "1.0.2"}, {"name": "pillow", "version": "12.2.0"}, {"name":
"pip", "version": "26.0.1"}, {"name": "platformdirs", "version": "4.9.6"}, {"name": "plotly", "version":
"6.7.0"}, {"name": "plotly-express", "version": "0.4.1"}, {"name": "prometheus_client", "version":
"0.25.0"}, {"name": "prompt_toolkit", "version": "3.0.52"}, {"name": "protobuf", "version": "7.34.1"}, {"name":
"psutil", "version": "7.2.2"}, {"name": "pure_eval", "version": "0.2.3"}, {"name": "pycparser", "version":
"3.0"}, {"name": "Pygments", "version": "2.20.0"}, {"name": "pyparsing", "version": "3.3.2"}, {"name":
"python-dateutil", "version": "2.9.0.post0"}, {"name": "python-json-logger", "version": "4.1.0"}, {"name":
"pytz", "version": "2026.2"}, {"name": "pywinpty", "version": "3.0.3"}, {"name": "PyYAML", "version":
"6.0.3"}, {"name": "pyzmq", "version": "27.1.0"}, {"name": "referencing", "version": "0.37.0"}, {"name":
"requests", "version": "2.34.2"}, {"name": "retrying", "version": "1.4.2"}, {"name": "rfc3339-validator",
"version": "0.1.4"}, {"name": "rfc3986-validator", "version": "0.1.1"}, {"name": "rfc3987-syntax", "version":
"1.1.0"}, {"name": "rich", "version": "15.0.0"}, {"name": "rpds-py", "version": "0.30.0"}, {"name":
"scikit-learn", "version": "1.7.2"}, {"name": "scipy", "version": "1.15.3"}, {"name": "seaborn", "version":
"0.13.2"}, {"name": "Send2Trash", "version": "2.1.0"}, {"name": "setuptools", "version": "82.0.1"}, {"name":
"six", "version": "1.17.0"}, {"name": "soupsieve", "version": "2.8.3"}, {"name": "SQLAlchemy", "version":
"2.0.49"}, {"name": "stack-data", "version": "0.6.3"}, {"name": "statsmodels", "version": "0.14.6"}, {"name":
"tensorflow", "version": "2.21.0"}, {"name": "termcolor", "version": "3.3.0"}, {"name": "terminado", "version":
"0.18.1"}, {"name": "threadpoolctl", "version": "3.6.0"}, {"name": "tinycss2", "version": "1.4.0"}, {"name":
"tomli", "version": "2.4.1"}, {"name": "tornado", "version": "6.5.5"}, {"name": "traitlets", "version":
"5.15.0"}, {"name": "typing_extensions", "version": "4.15.0"}, {"name": "tzdata", "version": "2026.2"}, {"name":
"uri-template", "version": "1.3.0"}, {"name": "urllib3", "version": "2.7.0"}, {"name": "wcwidth", "version":
"0.7.0"}, {"name": "webcolors", "version": "25.10.0"}, {"name": "webencodings", "version": "0.5.1"}, {"name":
"websocket-client", "version": "1.9.0"}, {"name": "Werkzeug", "version": "3.1.8"}, {"name": "wheel", "version":
"0.46.3"}, {"name": "widgetsnbextension", "version": "4.0.15"}, {"name": "wrapt", "version": "2.1.2"}, {"name":
"xgboost", "version": "3.2.0"}, {"name": "zipp", "version": "3.23.1"}]
!pip list --verbose runs a shell command to display the file path of installed packages in my laptop or desktop environment.
Package Version Location Installer ------------------------- ----------- ----------------------------------------------------- --------- absl-py 2.4.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip anyio 4.13.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip argon2-cffi 25.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip argon2-cffi-bindings 25.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip arrow 1.4.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip asttokens 3.0.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip astunparse 1.6.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip async-lru 2.3.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip attrs 26.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip babel 2.18.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip beautifulsoup4 4.14.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip bleach 6.3.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip blinker 1.9.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip catboost 1.2.10 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip certifi 2026.4.22 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip cffi 2.0.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip charset-normalizer 3.4.7 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip click 8.3.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip colorama 0.4.6 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip comm 0.2.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip contourpy 1.3.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip cycler 0.12.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip dash 4.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip debugpy 1.8.20 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip decorator 5.2.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip defusedxml 0.7.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip et_xmlfile 2.0.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip exceptiongroup 1.3.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip executing 2.2.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip fastjsonschema 2.21.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip Flask 3.1.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip flatbuffers 25.12.19 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip fonttools 4.63.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip fqdn 1.5.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip gast 0.7.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip google-pasta 0.2.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip graphviz 0.21 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip greenlet 3.5.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip grpcio 1.80.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip h11 0.16.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip h5py 3.14.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip httpcore 1.0.9 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip httpx 0.28.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip idna 3.15 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip importlib_metadata 9.0.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip ipykernel 7.2.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip ipympl 0.10.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip ipython 8.39.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip ipywidgets 8.1.8 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip isoduration 20.11.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip itsdangerous 2.2.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jedi 0.20.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip Jinja2 3.1.6 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip joblib 1.5.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip json5 0.14.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jsonpointer 3.1.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jsonschema 4.26.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jsonschema-specifications 2025.9.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter 1.1.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter_client 8.8.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter-console 6.6.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter_core 5.9.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter-events 0.12.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter-lsp 2.3.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter_server 2.18.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyter_server_terminals 0.5.4 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyterlab 4.5.7 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyterlab_pygments 0.3.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyterlab_server 2.28.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip jupyterlab_widgets 3.0.16 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip keras 3.12.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip kiwisolver 1.5.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip lark 1.3.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip libclang 18.1.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip lightgbm 4.6.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip lxml 6.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip markdown-it-py 4.2.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip MarkupSafe 3.0.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip matplotlib 3.10.9 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip matplotlib-inline 0.2.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip mdurl 0.1.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip mistune 3.2.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip ml_dtypes 0.5.4 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip namex 0.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip narwhals 2.21.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip nbclient 0.10.4 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip nbconvert 7.17.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip nbformat 5.10.4 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip nest-asyncio 1.6.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip notebook 7.5.6 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip notebook_shim 0.2.4 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip numpy 2.2.6 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip openpyxl 3.1.5 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip opt_einsum 3.4.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip optree 0.19.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip overrides 7.7.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip packaging 26.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pandas 2.3.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pandocfilters 1.5.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip parso 0.8.7 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip patsy 1.0.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pillow 12.2.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pip 26.0.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages conda platformdirs 4.9.6 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip plotly 6.7.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip plotly-express 0.4.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip prometheus_client 0.25.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip prompt_toolkit 3.0.52 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip protobuf 7.34.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip psutil 7.2.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pure_eval 0.2.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pycparser 3.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip Pygments 2.20.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pyparsing 3.3.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip python-dateutil 2.9.0.post0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip python-json-logger 4.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pytz 2026.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pywinpty 3.0.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip PyYAML 6.0.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip pyzmq 27.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip referencing 0.37.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip requests 2.34.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip retrying 1.4.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip rfc3339-validator 0.1.4 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip rfc3986-validator 0.1.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip rfc3987-syntax 1.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip rich 15.0.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip rpds-py 0.30.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip scikit-learn 1.7.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip scipy 1.15.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip seaborn 0.13.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip Send2Trash 2.1.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip setuptools 82.0.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages six 1.17.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip soupsieve 2.8.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip SQLAlchemy 2.0.49 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip stack-data 0.6.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip statsmodels 0.14.6 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip tensorflow 2.21.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip termcolor 3.3.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip terminado 0.18.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip threadpoolctl 3.6.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip tinycss2 1.4.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip tomli 2.4.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip tornado 6.5.5 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip traitlets 5.15.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip typing_extensions 4.15.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip tzdata 2026.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip uri-template 1.3.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip urllib3 2.7.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip wcwidth 0.7.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip webcolors 25.10.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip webencodings 0.5.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip websocket-client 1.9.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip Werkzeug 3.1.8 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip wheel 0.46.3 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages widgetsnbextension 4.0.15 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip wrapt 2.1.2 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip xgboost 3.2.0 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip zipp 3.23.1 c:\users\xxxxx\anaconda3\envs\py310\lib\site-packages pip
from catboost import CatBoostClassifier import pandas as pd
df = pd.read_csv("training_data.csv")
X = df.drop("next_question", axis=1)
y = df["next_question"]
categorical_features = ["topic",
"difficulty"]
model = CatBoostClassifier( iterations=500, learning_rate=0.05, depth=6, loss_function="MultiClass", random_seed=42, verbose=True ) model.fit( X, y, cat_features=categorical_features )
model.save_model("catboost_next_
question.cbm")
from catboost import CatBoostClassifier
import pandas as pd
model = CatBoostClassifier()
model.load_model("catboost_next_
question.cbm")
def predict_next_question(student
_features: dict):
df = pd.DataFrame([student_features])
next_q = model.predict(df)[0]
return int(next_q)
from catboost import CatBoostClassifier
import pandas as pd
Load the trained model once at startup
model = CatBoostClassifier()
model.load_model("catboost_next_
question.cbm")
def predict_next_question(student
_features: dict) -> int: # student_features example: # { # "topic": "algebra", # "difficulty": "medium", # "correct": 1, # "time_sec": 12 # } df = pd.DataFrame([student_features]) prediction = model.predict(df)[0] return int(prediction)
from flask import Flask, request, jsonify
app = Flask(name)
@app.route("/next-question", methods=
["POST"])
def next_question():
data = request.get_json()
Expecting keys like: topic, difficulty,
correct, time_sec
next_q_id = predict_next_question(data)
return jsonify({"next_question_id":
next_q_id})
if name == "main":
app.run(host="0.0.0.0", port=5000)
const studentState = {
topic: currentTopic,
difficulty: currentDifficulty,
correct: isCorrect ? 1 : 0,
time_sec: timeSpent
};
fetch("/next-question", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(studentState)
})
.then(response => response.json())
.then(data => {
const nextId = data.next_question_id;
loadNextQuestion(nextId);
})
.catch(err => {
console.error("Error getting next
question:", err);
});
function loadNextQuestion(id) {
// Replace this with your existing question
loader
console.log("Loading question:", id);
displayQuestion(id);
}
import shap explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(df)
shap.force_plot( explainer.expected_value, shap_values[0], df.iloc[0] )
from catboost import CatBoostClassifier
import pandas as pd
df = pd.read_csv("training_data.csv")
X = df.drop("next_question", axis=1)
y = df["next_question"]
categorical_features = ["topic",
"difficulty"]
model = CatBoostClassifier(
iterations=500,
learning_rate=0.05,
depth=6,
loss_function="MultiClass",
random_seed=42,
verbose=True
)
model.fit(
X,
y,
cat_features=categorical_features
)
model.save_model("catboost_next_question.
cbm")
from catboost import CatBoostClassifier import pandas as pd from flask import Flask, request, jsonify MODEL_PATH = "catboost_next_question.cbm" model = CatBoostClassifier() model.load_model(MODEL_PATH) app = Flask(name) def predict_next_question(student_features:
dict) -> int: df = pd.DataFrame([student_features]) prediction = model.predict(df)[0] return int(prediction) @app.route("/next-question", methods=
["POST"]) def next_question(): data = request.get_json() next_q_id = predict_next_question(data) return jsonify({"next_question_id":
next_q_id}) if name == "main": app.run(host="0.0.0.0", port=5000)
const studentState = {
topic: currentTopic,
difficulty: currentDifficulty,
correct: isCorrect ? 1 : 0,
time_sec: timeSpent
};
fetch("/next-question", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(studentState)
})
.then(response => response.json())
.then(data => {
const nextId = data.next_question_id;
loadNextQuestion(nextId);
})
.catch(err => {
console.error("Error getting next question:"
, err);
});
{
"student_id": 1,
"name": "Alice",
"accuracy": 0.82,
"avg_time_sec": 14.2,
"current_difficulty": "medium",
"topics": {
"algebra": 0.90,
"fractions": 0.85,
"geometry": 0.62,
"word_problems": 0.55
}
}
