Skip to content

Commit

Permalink
ENH Adds better error message for GitHub in html repr (scikit-learn#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan authored Mar 19, 2022
1 parent 7dc97a3 commit 7116165
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sklearn/utils/_estimator_html_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ def estimator_html_repr(estimator):
# The reverse logic applies to HTML repr div.sk-container.
# div.sk-container is hidden by default and the loading the CSS displays it.
fallback_msg = (
"Please rerun this cell to show the HTML repr or trust the notebook."
"In a Jupyter environment, please rerun this cell to show the HTML"
" representation or trust the notebook. <br />On GitHub, the"
" HTML representation is unable to render, please try loading this page"
" with nbviewer.org."
)
out.write(
f"<style>{style_with_id}</style>"
Expand Down

0 comments on commit 7116165

Please sign in to comment.