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

Charts rendered in Jupyter notebooks #36

Closed
minibix opened this issue May 15, 2020 · 3 comments
Closed

Charts rendered in Jupyter notebooks #36

minibix opened this issue May 15, 2020 · 3 comments
Assignees

Comments

@minibix
Copy link

minibix commented May 15, 2020

Love this library, however, is there any plan to implement a method which outputs chart HTML / CSS that can be represented immediately in Jupyter Lab / notebooks? I've not looked into what data format Jupyter requires to show charts, but I tested XPlot and the charts render immediately inside the notebook.

@muehlhaus
Copy link
Collaborator

Thank you for the feature request. I changed the HTML representation, that it should work using the developer branch... We will test the new version and release a nuget package by the end of next week. To show the inline chart you need to use |> Chart.toChartHTML and then use |> Display (using ifsharp) or |> HtmlString (using dotnet.interactive) instead of Chart.Show. Here is an example: https://github.com/ZimmerD/COVIS-19

@minibix
Copy link
Author

minibix commented May 18, 2020

Superb - will report back with any issues.

@kMutagene
Copy link
Member

Additionally, Plotly.NET.Interactive is now available via nuget if you are using dotnet interactive notebooks. just reference the package, and the formatter will automatically be registered:

image

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

No branches or pull requests

3 participants