Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtale.show() not working in macos #757

Open
LmYjQ opened this issue May 5, 2023 · 8 comments
Open

dtale.show() not working in macos #757

LmYjQ opened this issue May 5, 2023 · 8 comments

Comments

@LmYjQ
Copy link

LmYjQ commented May 5, 2023

My dtale version is 2.15.2.
In jupyter notebook
image

I also tried d.open_browser()
image

Thanks for help.

@aschonfeld
Copy link
Collaborator

@LmYjQ I was able to run jupyter notebook on Python3.8 with D-Tale 2.15.2 installed with no issue on my macbook. Depending on your browser, could you open "Developer Toolbar" and show the network tab before you call dtale.show? This way we can see what might be happening. Maybe its a firewall thing

@LmYjQ
Copy link
Author

LmYjQ commented May 11, 2023

@aschonfeld I'm not sure how to check the firewall. Are these messages useful to you?

image image

@aschonfeld
Copy link
Collaborator

Hmm, yea that doesn't tell me much other than the fact that your browser can't access the flask process for D-Tale. Can you run dtale.instances() in another cell in your notebook just to make sure that D-Tale in creating an instance for your dataframe?

Another thing I'd like you to try would be opening a python console from your command line. So do the following:

  • open a terminal
  • activate your virtual environment
  • execute python
  • run the following code snippet
import dtale
import pandas as pd

dtale.show(pd.DataFrame([1,2,3]))
  • this should spit out a URL that you can paste into a browser and should display that dataframe

I'm just trying to see if this is an issue with jupyter or with your machine in general. Thanks

@LmYjQ
Copy link
Author

LmYjQ commented May 19, 2023

D-Tale instance did created.
image

python terminal
image
image

The Chinese "bogon 未发送任何数据" means bogon didn't send any data. Can I check the data that should be sent?

@Fanghanmo2412
Copy link

Fanghanmo2412 commented Jul 17, 2023

+1 I get the same issue, Macbook Pro M1 pro, same as "XXX 未发送任何数据" , which means XXX didn't send any data

@aschonfeld
Copy link
Collaborator

Can you try hitting the URL http://0.0.0.0:40001? I bet its an issue with the computer name that macos is returning

@Fanghanmo2412
Copy link

It works, or you can put your localhost IP with your mac name in /etc/hosts, like this:
127.0.0.1 bogon
there is a space between url and mac name, and it works
@LmYjQ

@aschonfeld
Copy link
Collaborator

Ok if that does work then you can fix the behavior by using the hostname parameter. For example:

import dtale
import pandas as pd

dtale.show(pd.DataFrame([1,2,3,4,5]), hostname='127.0.0.1')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants