Skip to content

Book recipes do not render graphs #248

@Nick-Pearson

Description

@Nick-Pearson

The graphs in the book recipes are not rendering due to the inline html being generated with an old version of plotly.js
They fail with this error

Uncaught TypeError: Cannot read properties of undefined (reading 'select')
    at scatter_plots.html:347:31

e.g. Scatter Plots

Additionally the code in the book recipes can drift from the code in the examples directory.

MD Book has a feature which allows inserting code directly from other files https://rust-lang.github.io/mdBook/format/mdbook.html#including-portions-of-a-file
The book could include rust source code and rendered html fragments directly from the examples. That way it can be ensured the recipes compile and can produce a rendered graph

I am happy to submit a PR for this

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions