Running my app on a localhost

Hi guys Thanks for having me on your community
my first dashboard application is running terribly slowly and received warning in my VS code terminal it states as such :
Dash is running on http://127.0.0.1:8050/

  • Serving Flask app “Dash” (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
    I have not plotted any chart and it doesnot even show on my local host
    please help me solve this frustrating issue with your ideas and suggestions as to how can I accelerate the hosting on my localhost
    with best regards
    Bahageel

Hi @Bahageel88, Welcome to the forum.

The warning message comes as standard and is nothing out of the ordinary. Just to remind you to think of a better solution when you are done :slight_smile:

To check wether you have connectivity you can try the following in a Powershell (windows)
Invoke-WebRequest -URI http://127.0.0.1:8050

If you do,
Do you just get an empty page? Did you define a layout?

Can you see any errors in the console of your browser? F12 developer tools?
Do you see any bottlenecks in the network tab?

Just for the fun of things :slight_smile: A chatgpt support answer

no I cannot even see my application on the browser its running terribly slowly and not showing at all even though internet connection is good
please help me
I have defined layout and put the visual components as well as define the call back function
the same problem persists:
Dash is running on http://127.0.0.1:8050/

Serving Flask app “Dash” (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
Debug mode: on
I have not plotted any chart and it doesnot even show on my local host
please help me solve this frustrating issue with your ideas and suggestions as to how can I accelerate the hosting on my localhost
with best regards
Bahageel

Hi,. In order to save some time, can you please to a minimal example from online docs, make sure you have installed the latest versions of everything and try to run that in order to proof that your setup is working and it’s not a problem with your code.

Also you need to provide more info, either actual code or some errors since with this limited feedback it will go nowhere

as far as my code goes
I verified that my code is correct and well debugged and already ran it on my juypeter notebook so there is no problem concerning the code showed all the visualizations with no error but once I run it on VS code it runs slowly

Well, it would have been nice to have stated that in your problem description. Could you at least share some code of what you are trying to do? Otherwise you might as well open a ticket with Microsoft . Same result. From experience, I can only say that if you run e.g. jupyter via anaconda it is highly optimized and depending on what you are doing it might make a big difference

Hello @Bahageel88,

Could you please post a MRE so that we can run it on our own machines?

It is also possible that it might not be an issue with dash at all, but could be an issue with your configuration.

What happens if you change the port to 5000?

Hi guys at Plotly community
I am currently working on visualization app but I want my chloropleth map without the outer box in white how to do that
help me please !
with kind regards

Hey @Bahageel88,

Normally, it is better to search the forums and post a different topic if you can’t find something that you think will help you. :grin:

For this, there are quite a few. :wink:

Anyways, was your original issue resolved?

You are looking for margin for update_layout.

fig.update_layout(margin=dict(r=0, l=0,t=0,b=0))

yes I solved by cleaning my terminal

1 Like

I tried your proposal but the outer box shape still exists do you have any suggestion

Can you please post a different topic and post an MRE

This way it’s a new topic to discuss and when people come to the forum, they may find the topic and discussion helpful.

The MRE also helps us understand how we can test what you are doing, and maybe see where your code is getting off track.

I will publish my dashboard once its ready ass well as publish a topic about data visualization with Dash
best Regards