# \#flask

**URL:** https://discuss.streamlit.io/tag/flask/88.md

[Latest](https://discuss.streamlit.io/latest.md) · [Categories](https://discuss.streamlit.io/categories.md) · [Tags](https://discuss.streamlit.io/tags.md)

---

## [Streamlit restful app](https://discuss.streamlit.io/t/streamlit-restful-app/409)

<div class="topic-metadata">

**Author:** [@Nelson\_Silva](https://discuss.streamlit.io/u/Nelson_Silva)\
**Replies:** 29\
**Last updated:** [January 17, 2025, 4:08pm UTC](https://discuss.streamlit.io/t/streamlit-restful-app/409 "2025-01-17T16:08:28Z")

</div>

Is there a way to create a restful app using only streamlit, like Flask? Or can you provide such an example using Flask? This would be very helpful. I am loving Streamlit so far.

---

## [Stock Analysis Tool combining individual stocks & macro insights](https://discuss.streamlit.io/t/stock-analysis-tool-combining-individual-stocks-macro-insights/90312)

<div class="topic-metadata">

**Author:** [@TechFin](https://discuss.streamlit.io/u/TechFin)\
**Replies:** 0\
**Last updated:** [January 12, 2025, 5:56am UTC](https://discuss.streamlit.io/t/stock-analysis-tool-combining-individual-stocks-macro-insights/90312 "2025-01-12T05:56:31Z")

</div>

:rocket: Hey guys, I have just launched an interesting stock analysis tool using realtime global stock metrics and US economy data. Try it out here @ https://global-stock-analysis-dt9zcbata5etikql7mbexh.streamlit.app/ …

---

## [I am getting this error --\> TypeError: ForwardRef.\_evaluate() missing 1 required keyword-only argument: 'recursive\_guard'](https://discuss.streamlit.io/t/i-am-getting-this-error-typeerror-forwardref-evaluate-missing-1-required-keyword-only-argument-recursive-guard/80438)

<div class="topic-metadata">

**Author:** [@Ola1](https://discuss.streamlit.io/u/Ola1)\
**Replies:** 1\
**Last updated:** [September 4, 2024, 9:11am UTC](https://discuss.streamlit.io/t/i-am-getting-this-error-typeerror-forwardref-evaluate-missing-1-required-keyword-only-argument-recursive-guard/80438 "2024-09-04T09:11:14Z")

</div>

If you’re creating a debugging post, please include the following info: I am trying to deploy an app on https://encanto.streamlit.app/ I successfully installed all packages, but during health checks from website I have…

---

## [Pages slower than Tabs? Cache whole pages/tabs?](https://discuss.streamlit.io/t/pages-slower-than-tabs-cache-whole-pages-tabs/70199)

<div class="topic-metadata">

**Author:** [@P11](https://discuss.streamlit.io/u/P11)\
**Replies:** 5\
**Last updated:** [May 20, 2024, 9:53pm UTC](https://discuss.streamlit.io/t/pages-slower-than-tabs-cache-whole-pages-tabs/70199 "2024-05-20T21:53:17Z")

</div>

I have some models, vector DBs and other data I store using cache\_resource and cache\_data in session\_states. (Caching across pages in Multipage App - #3 by blackary) I initially built an app all in tabs where each tab i…

---

## [Changes are not reflecting with python flask API when deployed to Azure APP service. Issue with reloading the gunicorn web server](https://discuss.streamlit.io/t/changes-are-not-reflecting-with-python-flask-api-when-deployed-to-azure-app-service-issue-with-reloading-the-gunicorn-web-server/68299)

<div class="topic-metadata">

**Author:** [@Vish1210](https://discuss.streamlit.io/u/Vish1210)\
**Replies:** 0\
**Last updated:** [April 29, 2024, 11:31pm UTC](https://discuss.streamlit.io/t/changes-are-not-reflecting-with-python-flask-api-when-deployed-to-azure-app-service-issue-with-reloading-the-gunicorn-web-server/68299 "2024-04-29T23:31:05Z")

</div>

I have developed a API using python flask. When any code changes and run it locally, API reflect the new changes but in the case where I am deploying it to Azure App service, any new changes are not reflected. API shows …

---

## [Can I use computer/host name instead of IP number in URL?](https://discuss.streamlit.io/t/can-i-use-computer-host-name-instead-of-ip-number-in-url/787)

<div class="topic-metadata">

**Author:** [@pybokeh](https://discuss.streamlit.io/u/pybokeh)\
**Replies:** 18\
**Last updated:** [April 2, 2024, 6:46am UTC](https://discuss.streamlit.io/t/can-i-use-computer-host-name-instead-of-ip-number-in-url/787 "2024-04-02T06:46:10Z")

</div>

I have a flask app that I converted as a streamlit app. The streamlit app works fine. With my flask app, I can replace my IP # with my computer name in the URL and it works fine. However, with my streamlit app, if I r…

---

## [How to add Google Analytics or JS code in a Streamlit app?](https://discuss.streamlit.io/t/how-to-add-google-analytics-or-js-code-in-a-streamlit-app/1610)

<div class="topic-metadata">

**Author:** [@mzeidhassan](https://discuss.streamlit.io/u/mzeidhassan)\
**Replies:** 51\
**Last updated:** [February 21, 2024, 7:02am UTC](https://discuss.streamlit.io/t/how-to-add-google-analytics-or-js-code-in-a-streamlit-app/1610 "2024-02-21T07:02:06Z")

</div>

Hi all, I would like to monitor the traffic on my app using Google Analytics. What is the best way to achieve this? I need to insert something like that \<script async src="https://www.googletagmanager.com/gtag/js?id=U…

---

## [🌶️ Streamlit x Flask x Stripe Example (with user authentication)](https://discuss.streamlit.io/t/streamlit-x-flask-x-stripe-example-with-user-authentication/59593)

<div class="topic-metadata">

**Author:** [@Brydon\_Parker](https://discuss.streamlit.io/u/Brydon_Parker)\
**Replies:** 0\
**Last updated:** [January 14, 2024, 10:07pm UTC](https://discuss.streamlit.io/t/streamlit-x-flask-x-stripe-example-with-user-authentication/59593 "2024-01-14T22:07:31Z")

</div>

---

## [Error when deploying app using Flask as backend](https://discuss.streamlit.io/t/error-when-deploying-app-using-flask-as-backend/59127)

<div class="topic-metadata">

**Author:** [@NoeliaIntriago](https://discuss.streamlit.io/u/NoeliaIntriago)\
**Replies:** 2\
**Last updated:** [January 9, 2024, 12:00am UTC](https://discuss.streamlit.io/t/error-when-deploying-app-using-flask-as-backend/59127 "2024-01-09T00:00:28Z")

</div>

Hello, I’m trying to deploy a ML dashboard, which I’ve built with Flask as backend framework and Streamlit as frontend framework. First, I was getting an error referring to the package I was using for MySQL connection, s…

---

## [My first web app made in flask can't be deployed](https://discuss.streamlit.io/t/my-first-web-app-made-in-flask-cant-be-deployed/56923)

<div class="topic-metadata">

**Author:** [@bhavesh1oo](https://discuss.streamlit.io/u/bhavesh1oo)\
**Replies:** 3\
**Last updated:** [December 6, 2023, 8:01pm UTC](https://discuss.streamlit.io/t/my-first-web-app-made-in-flask-cant-be-deployed/56923 "2023-12-06T20:01:20Z")

</div>

1. \[imageobjectremover.streamlit.app\](https://imageobjectremover.streamlit.app/) 2. https://github.com/bhavesh1oo/image\_object\_remover/ 3. ValueError: This app has encountered an error. The original error message is…

---

## [Deployment error due to version conflict of protobuf](https://discuss.streamlit.io/t/deployment-error-due-to-version-conflict-of-protobuf/42817)

<div class="topic-metadata">

**Author:** [@abhay11111111](https://discuss.streamlit.io/u/abhay11111111)\
**Replies:** 3\
**Last updated:** [May 9, 2023, 11:17am UTC](https://discuss.streamlit.io/t/deployment-error-due-to-version-conflict-of-protobuf/42817 "2023-05-09T11:17:46Z")

</div>

Summary I’m getting error due to version conflict of protobuf This error I’m Getting Code snippet: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is t…

---

## [Serve streamlit within flask](https://discuss.streamlit.io/t/serve-streamlit-within-flask/493)

<div class="topic-metadata">

**Author:** [@Alvaro\_Ferrer](https://discuss.streamlit.io/u/Alvaro_Ferrer)\
**Replies:** 10\
**Last updated:** [August 2, 2022, 10:01am UTC](https://discuss.streamlit.io/t/serve-streamlit-within-flask/493 "2022-08-02T10:01:19Z")

</div>

Hi, Thank you from streamlit. It’s really an amazing product. We use flask internally to build a variety of analytical apps. Would it be possible to serve a streamlit app within flask? Thank you

---

## [New at Streamlit facing issue while deploying](https://discuss.streamlit.io/t/new-at-streamlit-facing-issue-while-deploying/27925)

<div class="topic-metadata">

**Author:** [@Gundeep\_Singh](https://discuss.streamlit.io/u/Gundeep_Singh)\
**Replies:** 3\
**Last updated:** [July 20, 2022, 4:37pm UTC](https://discuss.streamlit.io/t/new-at-streamlit-facing-issue-while-deploying/27925 "2022-07-20T16:37:07Z")

</div>

Hello guys, I am trying to deploy my flask based web app on streamlit but facing some issue how to solve this issue or anyone share any reference or video from where I learn how to deploy. Thanks

---

## [(Comparison Video) Flask / Bottle + HTMX vs Streamlit](https://discuss.streamlit.io/t/comparison-video-flask-bottle-htmx-vs-streamlit/23470)

<div class="topic-metadata">

**Author:** [@gerardrbentley](https://discuss.streamlit.io/u/gerardrbentley)\
**Replies:** 2\
**Last updated:** [March 24, 2022, 3:09pm UTC](https://discuss.streamlit.io/t/comparison-video-flask-bottle-htmx-vs-streamlit/23470 "2022-03-24T15:09:43Z")

</div>

I converted a few developer tool type apps from Bottle + HTMX to Streamlit and I wanted to show a hello world example of comparing Streamlit to this workflow. Since Bottle & HTMX are not that popular: Bottle ~= Flask H…

---

## [Editable Data Tables in Streamlit](https://discuss.streamlit.io/t/editable-data-tables-in-streamlit/529)

<div class="topic-metadata">

**Author:** [@sheridonx](https://discuss.streamlit.io/u/sheridonx)\
**Replies:** 15\
**Last updated:** [December 28, 2021, 2:42am UTC](https://discuss.streamlit.io/t/editable-data-tables-in-streamlit/529 "2021-12-28T02:42:33Z")

</div>

Hello! Thank you to the dev team for making Streamlit, this is quite a brilliant, exiting and useful tool for data engineers who want to quickly and easily make front end app for data visualization. I am wondering if t…

---

## [Production deployment a la Flask/Gunicorn](https://discuss.streamlit.io/t/production-deployment-a-la-flask-gunicorn/17341)

<div class="topic-metadata">

**Author:** [@fredzannarbor](https://discuss.streamlit.io/u/fredzannarbor)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 12:52pm UTC](https://discuss.streamlit.io/t/production-deployment-a-la-flask-gunicorn/17341 "2021-09-21T12:52:57Z")

</div>

I am getting ready to deploy a simple Streamlit app to my company web server. I am coming from the Flask world where we use gunicorn or Nginx to serve production-ready apps. What is the equivalent (if any) in Streamlit …

---

## [Streamlit custom component, flask issue](https://discuss.streamlit.io/t/streamlit-custom-component-flask-issue/15804)

<div class="topic-metadata">

**Author:** [@Hiba\_Fatima](https://discuss.streamlit.io/u/Hiba_Fatima)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 2:01pm UTC](https://discuss.streamlit.io/t/streamlit-custom-component-flask-issue/15804 "2021-08-05T14:01:35Z")

</div>

Inside my My component.tsk file, I have have attached a flask api too it , that helps me get a dropdown in input box. I am only able to search through items on my own system,while the other people on the server cant sea…

---

## [How to handle HTTP requests with Streamlit?](https://discuss.streamlit.io/t/how-to-handle-http-requests-with-streamlit/14024)

<div class="topic-metadata">

**Author:** [@vdana](https://discuss.streamlit.io/u/vdana)\
**Replies:** 1\
**Last updated:** [June 16, 2021, 9:46am UTC](https://discuss.streamlit.io/t/how-to-handle-http-requests-with-streamlit/14024 "2021-06-16T09:46:40Z")

</div>

I have a streamlit app currently deployed on Google’s App Engine. For this application, we want to introduce App Engine Cloud Tasks, to help us with timing and managing our resources. To create a task, our streamlit app …

---

## [ConnectionError with flask server](https://discuss.streamlit.io/t/connectionerror-with-flask-server/5525)

<div class="topic-metadata">

**Author:** [@Vishal\_Karthik](https://discuss.streamlit.io/u/Vishal_Karthik)\
**Replies:** 4\
**Last updated:** [December 15, 2020, 6:39pm UTC](https://discuss.streamlit.io/t/connectionerror-with-flask-server/5525 "2020-12-15T18:39:09Z")

</div>

I am getting the following error while run the streamlit app ConnectionError: HTTPConnectionPool(host=‘127.0.0.1’, port=5000): Max retries exceeded with url: / (Caused by NewConnectionError(’\<urllib3.connection.HTTPConn…

---

## [Graduate Admissions Streamlit App](https://discuss.streamlit.io/t/graduate-admissions-streamlit-app/7803)

<div class="topic-metadata">

**Author:** [@Agrover112](https://discuss.streamlit.io/u/Agrover112)\
**Replies:** 1\
**Last updated:** [December 11, 2020, 2:02pm UTC](https://discuss.streamlit.io/t/graduate-admissions-streamlit-app/7803 "2020-12-11T14:02:09Z")

</div>

I created a Streamlit app that is made in a analysis /blog style , also can provide predictions for chance of Admittance for Masters using a Flask Api served on Windows port as a process, which contains a catboost mode…

---

## [How I was able to embed my Flask app within Streamlit](https://discuss.streamlit.io/t/how-i-was-able-to-embed-my-flask-app-within-streamlit/7490)

<div class="topic-metadata">

**Author:** [@aschonfeld](https://discuss.streamlit.io/u/aschonfeld)\
**Replies:** 2\
**Last updated:** [December 2, 2020, 4:45am UTC](https://discuss.streamlit.io/t/how-i-was-able-to-embed-my-flask-app-within-streamlit/7490 "2020-12-02T04:45:42Z")

</div>

Embedding Flask in Streamlit Here’s it in action Info on the demo

---

## [Integration with flask app](https://discuss.streamlit.io/t/integration-with-flask-app/809)

<div class="topic-metadata">

**Author:** [@qxlsz](https://discuss.streamlit.io/u/qxlsz)\
**Replies:** 5\
**Last updated:** [October 29, 2020, 2:19pm UTC](https://discuss.streamlit.io/t/integration-with-flask-app/809 "2020-10-29T14:19:28Z")

</div>

Hello, I am trying to integrate streamlit app with flask app. what would be the recommendations. I also want to save the rendered html file from streamlit so i can use flask.render\_template to show the interative strea…

---

## [Streamlit Module Not Found flask\_mysql\_connector](https://discuss.streamlit.io/t/streamlit-module-not-found-flask-mysql-connector/6375)

<div class="topic-metadata">

**Author:** [@Anthonny\_Gueli](https://discuss.streamlit.io/u/Anthonny_Gueli)\
**Replies:** 1\
**Last updated:** [October 20, 2020, 2:21pm UTC](https://discuss.streamlit.io/t/streamlit-module-not-found-flask-mysql-connector/6375 "2020-10-20T14:21:56Z")

</div>

Hello, i’m new using Streamlit and while i was working on a project i found the following issue: ModuleNotFoundError: No module named 'flask\_mysql\_connector' Basically i have 2 .py files in my project. One does with th…

---

## [Streamlit with Django or Flask authentication?](https://discuss.streamlit.io/t/streamlit-with-django-or-flask-authentication/4797)

<div class="topic-metadata">

**Author:** [@samLozier](https://discuss.streamlit.io/u/samLozier)\
**Replies:** 6\
**Last updated:** [August 19, 2020, 6:02am UTC](https://discuss.streamlit.io/t/streamlit-with-django-or-flask-authentication/4797 "2020-08-19T06:02:06Z")

</div>

I’m trying to setup a tool to help a user to update a product catalog on an ecommerce platform and I’m hoping to use streamlit to do so. I’ve figured out the data-processing part of this but I can’t seem to get a definit…

---

## [Deploying Streamlit with a Flask Model server on Heroku](https://discuss.streamlit.io/t/deploying-streamlit-with-a-flask-model-server-on-heroku/4832)

<div class="topic-metadata">

**Author:** [@Soma](https://discuss.streamlit.io/u/Soma)\
**Replies:** 2\
**Last updated:** [August 17, 2020, 6:38pm UTC](https://discuss.streamlit.io/t/deploying-streamlit-with-a-flask-model-server-on-heroku/4832 "2020-08-17T18:38:11Z")

</div>

Hello! I wanted to deploy a streamlit web app on Heroku. So, the way I designed this is, there is a flask model server which when receives a post request gives the prediction as a response. So, I send it a post request …

---

## [Is Streamlit actually useful?](https://discuss.streamlit.io/t/is-streamlit-actually-useful/4125)

<div class="topic-metadata">

**Author:** [@timforr](https://discuss.streamlit.io/u/timforr)\
**Replies:** 9\
**Last updated:** [July 17, 2020, 2:13pm UTC](https://discuss.streamlit.io/t/is-streamlit-actually-useful/4125 "2020-07-17T14:13:47Z")

</div>

I was very excited for Streamlit when I heard about it. I’ve built several applications using it, including a logs browser and a semantic search frontend. I’ve also advocated for it at my workplace and convinced several …

---

## [Flask to streamlit](https://discuss.streamlit.io/t/flask-to-streamlit/3220)

<div class="topic-metadata">

**Author:** [@iamamarpal](https://discuss.streamlit.io/u/iamamarpal)\
**Replies:** 2\
**Last updated:** [June 4, 2020, 11:19am UTC](https://discuss.streamlit.io/t/flask-to-streamlit/3220 "2020-06-04T11:19:26Z")

</div>

Can we make a flask web app on streamlit. ?

---

## [Hosting on cpanel](https://discuss.streamlit.io/t/hosting-on-cpanel/2635)

<div class="topic-metadata">

**Author:** [@Kraolik\_Shakya](https://discuss.streamlit.io/u/Kraolik_Shakya)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 1:16pm UTC](https://discuss.streamlit.io/t/hosting-on-cpanel/2635 "2020-04-27T13:16:41Z")

</div>

Wow this is the greatest tool I found after python. I have a hosting service with python , I even pip installed streamlit there. I can host the flask app in my hosting server . However I could not run the streamlit ru…

---

## [How to output client or remote IP #s to console?](https://discuss.streamlit.io/t/how-to-output-client-or-remote-ip-s-to-console/832)

<div class="topic-metadata">

**Author:** [@pybokeh](https://discuss.streamlit.io/u/pybokeh)\
**Replies:** 7\
**Last updated:** [April 6, 2020, 8:59pm UTC](https://discuss.streamlit.io/t/how-to-output-client-or-remote-ip-s-to-console/832 "2020-04-06T20:59:24Z")

</div>

I’ve tried different logLevels and none give me the client or remote IP #s. I want to be able to see or store IP #s that have accessed my streamlit app.

---

## [Streamlit run in a different port and endpoint](https://discuss.streamlit.io/t/streamlit-run-in-a-different-port-and-endpoint/1647)

<div class="topic-metadata">

**Author:** [@qxlsz](https://discuss.streamlit.io/u/qxlsz)\
**Replies:** 2\
**Last updated:** [January 21, 2020, 11:45pm UTC](https://discuss.streamlit.io/t/streamlit-run-in-a-different-port-and-endpoint/1647 "2020-01-21T23:45:41Z")

</div>

Hello, I am trying to run my flask app and streamlit in same port my flask has 0.0.0.0:5000/foo endpoint and i want to run my streamlit app in 0.0.0.0:5000/foo2 is it possible ? if so how ?

[Next page](https://discuss.streamlit.io/tag/flask/88.md?match_all_tags=true&page=1&tags%5B%5D=flask)
