Showing 1 of 1 files from the diff.

@@ -25,7 +25,7 @@
Loading
25 25
from bokeh.embed.wrappers import wrap_in_script_tag
26 26
from bokeh.models import LayoutDOM, Model
27 27
from bokeh.resources import CDN, INLINE
28 -
from bokeh.settings import settings
28 +
from bokeh.settings import settings, _Unset
29 29
from bokeh.util.serialization import make_id
30 30
from pyviz_comms import (
31 31
    PYVIZ_PROXY, Comm, JupyterCommManager as _JupyterCommManager, nb_mime_js
@@ -208,16 +208,20 @@
Loading
208 208
    from IPython.display import publish_display_data
209 209
210 210
    resources = INLINE if inline else CDN
211 -
    prev_resources = settings.resources()
211 +
    prev_resources = settings.resources(default="server")
212 +
    user_resources = settings.resources._user_value is not _Unset
212 213
    try:
213 -
        settings.resources = 'cdn'
214 +
        settings.resources = 'inline' if inline else 'cdn'
214 215
        bundle = bundle_for_objs_and_resources(None, resources)
215 216
        configs, requirements, exports, skip_imports = require_components()
216 217
        ipywidget = 'ipywidgets_bokeh' in sys.modules
217 218
        bokeh_js = _autoload_js(bundle, configs, requirements, exports,
218 219
                                skip_imports, ipywidget, load_timeout)
219 220
    finally:
220 -
        settings.resources = prev_resources
221 +
        if user_resources:
222 +
            settings.resources = prev_resources
223 +
        else:
224 +
            settings.resources.unset_value()
221 225
222 226
    publish_display_data({
223 227
        'application/javascript': bokeh_js,
Files Coverage
panel 85.45%
dodo.py 0.00%
setup.py 0.00%
Project Totals (149 files) 85.05%
7022.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
1
coverage:
2
  status:
3
    patch: off
4
    project:
5
      default:
6
        target: auto
7
        threshold: 0.5%
8

9
comment:
10
  require_changes: yes
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading