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

Implement headless map generation #4

Open
shubhamkmr47 opened this issue May 12, 2017 · 2 comments
Open

Implement headless map generation #4

shubhamkmr47 opened this issue May 12, 2017 · 2 comments

Comments

@shubhamkmr47
Copy link

shubhamkmr47 commented May 12, 2017

After this command present in example:
flux_map(model, display_name_format=lambda x: str(x.id), figsize=(300,250))

an ipython html object is created. How to visualise it? I am using ubuntu-14 and executing program through terminal.

@pstjohn
Copy link
Owner

pstjohn commented May 12, 2017

Ah, good question. I think this will only work through the jupyter notebook sadly. The problem is that we use d3.js (a javascript library) to do a lot of the rendering. So we pretty much build an HTML object and embed in the javascript source, then rely on the browser to do the heavy lifting in terms of generating the image. 'Headless SVG generation' is probably possible in theory, but would probably be hard enough to keep me from doing it in the near future.

@pstjohn
Copy link
Owner

pstjohn commented Oct 24, 2017

This would probably be possible using puppeter to generate standalone images in different formats (png, pdf).

@pstjohn pstjohn changed the title How to display the ipython object created? Implement headless map generation Oct 29, 2017
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