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

Not able to see interactive plots after setting inline_data=False #59

Open
TianruiZhang opened this issue Dec 25, 2024 · 4 comments
Open

Comments

@TianruiZhang
Copy link

TianruiZhang commented Dec 25, 2024

The plot in https://datamapplot.readthedocs.io/en/latest/interactive_customization_options.html no longer displays properly after setting inline_data=False. It doesn't even show on the web. I ran the same code in Google Colab and found the same problem.
image

@lmcinnes
Copy link
Contributor

This certainly doesn't work in colab. It used to work pretty well, but it does depend on the jupyter setup because it has to do some tricks to try and get around jupyter's redirects etc. I'm not sure there are that many easy fixes at this point.

@TianruiZhang
Copy link
Author

There’s no solution to fix inline_data=False? I don’t need to display it in Jupyter all I need is a html file with many data.

@lmcinnes
Copy link
Contributor

If you just want to serve the file and data then it should just work; the only issues I have encountered are with Jupyter or colab. You do need to actually serve the files to avoid cross origin issues, but that should be sufficient. I've just checked and it is working for me currently. Can you check the developer tools for console messages in javascript?

@TianruiZhang
Copy link
Author

Access to fetch at 'file:///Users/jameschang/Downloads/interactive_plot_ms//datamapplot_label_data.zip' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.

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

2 participants