Lightning-Universe / lightning-bolts

Toolbox of models, callbacks, and datasets for AI/ML researchers.
https://lightning-bolts.readthedocs.io
Apache License 2.0
1.68k stars 320 forks source link

docs: Add interactive plots with Plotly #537

Open akihironitta opened 3 years ago

akihironitta commented 3 years ago

📚 Documentation

It would be nice to have interactive plots instead of the current screenshots of losses and metrics on tensorboard in our docs.

We can employ sphinx-plotly-directive like Optuna, a hyperparameter optimization framework, does in their docs.

Example

Source

.. plotly::

   >>> import plotly.express as px
   >>> px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])

Output tmp

Alternative

Suggested by @Borda http://nipy.org/nipy/devel/guidelines/sphinx_helpers.html#inserting-matplotlib-plots

Borda commented 3 years ago

see an alternative with basic matplotlib: http://nipy.org/nipy/devel/guidelines/sphinx_helpers.html#inserting-matplotlib-plots