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

Can't add logo image from working directory path #22

Open
Ibrokhimsadikov opened this issue May 1, 2024 · 3 comments
Open

Can't add logo image from working directory path #22

Ibrokhimsadikov opened this issue May 1, 2024 · 3 comments

Comments

@Ibrokhimsadikov
Copy link

Hello,

I have tried rendering interactive plot with logo image from local directory but it is not showing the image, only url image is working, I checked from documentation and it says only url allowed, is there any workaround?

Thanks!

@lmcinnes
Copy link
Contributor

lmcinnes commented May 1, 2024

I believe that a relative path and serving the output html (and logo image) should work. If you just want this locally then simple.http module should be enough, just make sure that the logo file is in the same directory or subdirectory of where you are running the server so it can serve the file as well.

@Ibrokhimsadikov
Copy link
Author

The problem is that it is not even showing logo image in jupyter nootbook, when I try to point path to logo image

plot = datamapplot.create_interactive_plot( arxivml_data_map, arxivml_label_layers[0], arxivml_label_layers[2], arxivml_label_layers[4], hover_text = arxiv_hover_data, font_family="Playfair Display SC", title="ArXiv Machine Learning Landscape", sub_title="A data map of papers from the Machine Learning section of ArXiv", logo = "path/to/logo.png" logo_width=180, on_click="window.open(http://google.com/search?q=\"{hover_text}\"`)",
enable_search=True,
darkmode=True,
)
plot`

@lmcinnes
Copy link
Contributor

lmcinnes commented May 1, 2024

I'm not sure there's a fix for it within the notebook unfortunately.

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