Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/bokeh/plotting/_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
#-----------------------------------------------------------------------------
from __future__ import annotations

from bokeh.models import ColumnDataSource

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from bokeh.models import ColumnDataSource

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from bokeh.models import ColumnDataSource

import logging # isort:skip

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

log = logging.getLogger(__name__)

#-----------------------------------------------------------------------------
Expand Down Expand Up @@ -255,7 +258,10 @@ def _convert_data_source(kwargs: Attrs) -> bool:

def _pop_renderer_args(kwargs: Attrs) -> Attrs:
result = {attr: kwargs.pop(attr) for attr in RENDERER_ARGS if attr in kwargs}
result['data_source'] = kwargs.pop('source', ColumnDataSource())
if 'source' in kwargs:
result['data_source'] = kwargs.pop('source')
else:
result['data_source'] = ColumnDataSource()
return result

def _process_sequence_literals(glyphclass: type[Glyph], kwargs: Attrs, source: ColumnarDataSource, is_user_source: bool) -> list[str]:
Expand Down