-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't show Bokeh Model class messages in plots pane (#4598)
Addresses #4597 This PR overrides the `_repr_html_` method on the `GlyphRenderer` and other `Model` class objects so they don't output html that gets shown in the plots pane. This commonly happens when running line-by-line while making a bokeh plot. ### Testing Running the following (making sure the `p.line(...)` line is last.) ```python from bokeh.plotting import figure, show p = figure(title="Simple line example", x_axis_label='x', y_axis_label='y') p.line([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], legend_label="Temp.", line_width=2) ``` Should no longer print an ugly `GlyphRenderer(...)` message to the plots pane. --------- Signed-off-by: Nick Strayer <[email protected]> Co-authored-by: seem <[email protected]>
- Loading branch information
Showing
5 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,7 @@ def json_rpc_request( | |
}, | ||
**content, | ||
}, | ||
"header": {}, | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters