We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Common structs should have implemented their own evcxr_display function in Debug trait to be visualized correctly in Notebooks (as HTML).
evcxr_display
Debug
For example as found here for List:
List
use std::fmt::Debug; pub struct List<T>(Vec<T>); impl<T: Debug> List<T> { pub fn evcxr_display(&self) { let mut html = String::new(); html.push_str("<ol>"); for item in &self.0 { html.push_str(&format!("<li>{:?}</li>", item)); } html.push_str("</ol>"); println!("EVCXR_BEGIN_CONTENT text/html\n{}\nEVCXR_END_CONTENT", html); } }
Different issues for this can be opened in main smartcore repo.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Common structs should have implemented their own
evcxr_display
function inDebug
trait to be visualized correctly in Notebooks (as HTML).For example as found here for
List
:Different issues for this can be opened in main smartcore repo.
The text was updated successfully, but these errors were encountered: