Regression
notebooks.IntroducingGensim.ipynb./mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb (from pytest)
Failing for the past 1 build
(Since Failed
)
Error Message
nbconvert.preprocessors.execute.CellExecutionError: An error occurred while executing the following cell: ------------------ PlotDocumentTopics = visualization.PlotDocumentTopics(document_topics) show(PlotDocumentTopics.interactive_heatmap(), notebook_handle=True) ------------------ #x1B[0;31m---------------------------------------------------------------------------#x1B[0m #x1B[0;31mAttributeError#x1B[0m Traceback (most recent call last) #x1B[0;32m<ipython-input-22-3c545f10dd80>#x1B[0m in #x1B[0;36m<module>#x1B[0;34m#x1B[0m #x1B[1;32m 1#x1B[0m #x1B[0mPlotDocumentTopics#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0mvisualization#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mPlotDocumentTopics#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mdocument_topics#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m----> 2#x1B[0;31m #x1B[0mshow#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mPlotDocumentTopics#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0minteractive_heatmap#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mnotebook_handle#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0;32mTrue#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0m #x1B[0;32m~/workspace/DARIAH-Topics/dariah_topics/visualization.py#x1B[0m in #x1B[0;36minteractive_heatmap#x1B[0;34m(self, palette, reverse_palette, tools, width, height, x_axis_location, toolbar_location, sizing_mode, line_color, grid_line_color, axis_line_color, major_tick_line_color, major_label_text_font_size, major_label_standoff, major_label_orientation, colorbar)#x1B[0m #x1B[1;32m 283#x1B[0m #x1B[0mtools#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0mtools#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mtoolbar_location#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0mtoolbar_location#x1B[0m#x1B[0;34m,#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 284#x1B[0m #x1B[0msizing_mode#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0msizing_mode#x1B[0m#x1B[0;34m,#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m--> 285#x1B[0;31m logo=None) #x1B[0m#x1B[1;32m 286#x1B[0m fig.rect(x='Documents', y='Topics', source=source, width=1, height=1, #x1B[1;32m 287#x1B[0m #x1B[0mfill_color#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0;34m{#x1B[0m#x1B[0;34m'field'#x1B[0m#x1B[0;34m:#x1B[0m #x1B[0;34m'Distributions'#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0;34m'transform'#x1B[0m#x1B[0;34m:#x1B[0m #x1B[0mmapper#x1B[0m#x1B[0;34m}#x1B[0m#x1B[0;34m,#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/plotting/figure.py#x1B[0m in #x1B[0;36mfigure#x1B[0;34m(**kwargs)#x1B[0m #x1B[1;32m 1021#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 1022#x1B[0m #x1B[0;32mdef#x1B[0m #x1B[0mfigure#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m**#x1B[0m#x1B[0mkwargs#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m-> 1023#x1B[0;31m #x1B[0;32mreturn#x1B[0m #x1B[0mFigure#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m**#x1B[0m#x1B[0mkwargs#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0m#x1B[1;32m 1024#x1B[0m #x1B[0mfigure#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__doc__#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0mFigure#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__doc__#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 1025#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/plotting/figure.py#x1B[0m in #x1B[0;36m__init__#x1B[0;34m(self, *arg, **kw)#x1B[0m #x1B[1;32m 187#x1B[0m #x1B[0mkw#x1B[0m#x1B[0;34m[#x1B[0m#x1B[0;34m'title'#x1B[0m#x1B[0;34m]#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0mTitle#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mtext#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0mtitle#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 188#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m--> 189#x1B[0;31m #x1B[0msuper#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mFigure#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__init__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m*#x1B[0m#x1B[0marg#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0;34m**#x1B[0m#x1B[0mkw#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0m#x1B[1;32m 190#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 191#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mx_range#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0m_get_range#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mopts#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mx_range#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/model.py#x1B[0m in #x1B[0;36m__init__#x1B[0;34m(self, **kwargs)#x1B[0m #x1B[1;32m 259#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m_document#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0;32mNone#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 260#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m_temp_document#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0;32mNone#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m--> 261#x1B[0;31m #x1B[0msuper#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mModel#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__init__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m**#x1B[0m#x1B[0mkwargs#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0m#x1B[1;32m 262#x1B[0m #x1B[0mdefault_theme#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mapply_to_model#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 263#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/core/has_props.py#x1B[0m in #x1B[0;36m__init__#x1B[0;34m(self, **properties)#x1B[0m #x1B[1;32m 252#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 253#x1B[0m #x1B[0;32mfor#x1B[0m #x1B[0mname#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mvalue#x1B[0m #x1B[0;32min#x1B[0m #x1B[0mproperties#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mitems#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m--> 254#x1B[0;31m #x1B[0msetattr#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mname#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mvalue#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0m#x1B[1;32m 255#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 256#x1B[0m #x1B[0;32mdef#x1B[0m #x1B[0m__setattr__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mname#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mvalue#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/core/has_props.py#x1B[0m in #x1B[0;36m__setattr__#x1B[0;34m(self, name, value)#x1B[0m #x1B[1;32m 287#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 288#x1B[0m raise AttributeError("unexpected attribute '%s' to %s, %s attributes are %s" % #x1B[0;32m--> 289#x1B[0;31m (name, self.__class__.__name__, text, nice_join(matches))) #x1B[0m#x1B[1;32m 290#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m #x1B[1;32m 291#x1B[0m #x1B[0;32mdef#x1B[0m #x1B[0m__str__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m #x1B[0;31mAttributeError#x1B[0m: unexpected attribute 'logo' to Figure, possible attributes are above, aspect_scale, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, css_classes, disabled, extra_x_ranges, extra_y_ranges, h_symmetry, height, hidpi, inner_height, inner_width, js_event_callbacks, js_property_callbacks, layout_height, layout_width, left, lod_factor, lod_interval, lod_threshold, lod_timeout, match_aspect, min_border, min_border_bottom, min_border_left, min_border_right, min_border_top, name, outline_line_alpha, outline_line_cap, outline_line_color, outline_line_dash, outline_line_dash_offset, outline_line_join, outline_line_width, output_backend, plot_height, plot_width, renderers, right, sizing_mode, subscribed_events, tags, title, title_location, toolbar, toolbar_location, toolbar_sticky, v_symmetry, width, x_range, x_scale, y_range or y_scale AttributeError: unexpected attribute 'logo' to Figure, possible attributes are above, aspect_scale, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, css_classes, disabled, extra_x_ranges, extra_y_ranges, h_symmetry, height, hidpi, inner_height, inner_width, js_event_callbacks, js_property_callbacks, layout_height, layout_width, left, lod_factor, lod_interval, lod_threshold, lod_timeout, match_aspect, min_border, min_border_bottom, min_border_left, min_border_right, min_border_top, name, outline_line_alpha, outline_line_cap, outline_line_color, outline_line_dash, outline_line_dash_offset, outline_line_join, outline_line_width, output_backend, plot_height, plot_width, renderers, right, sizing_mode, subscribed_events, tags, title, title_location, toolbar, toolbar_location, toolbar_sticky, v_symmetry, width, x_range, x_scale, y_range or y_scale
Stacktrace
self = <CallInfo when='call' exception: An error occurred while executing the following cell: ------------------ PlotDocument...e, title_location, toolbar, toolbar_location, toolbar_sticky, v_symmetry, width, x_range, x_scale, y_range or y_scale > func = <function call_runtest_hook.<locals>.<lambda> at 0x7f6ad8e35d08> when = 'call', treat_keyboard_interrupt_as_exception = False def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/_pytest/runner.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, treat_keyboard_interrupt_as_exception=item.config.getvalue("usepdb"), ) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/_pytest/runner.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': <RunNb '/mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb'>} notincall = set() def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() if self.spec and self.spec.argnames: notincall = ( set(self.spec.argnames) - set(["__multicall__"]) - set(kwargs.keys()) ) if notincall: warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(tuple(notincall)), stacklevel=2, ) > return self._hookexec(self, self.get_hookimpls(), kwargs) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/pluggy/hooks.py:284: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x7f6b1bd0cd30> hook = <_HookCaller 'pytest_runtest_call'> methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/mnt/data/jenkins/shiningpanda/jobs/62c67c92/vi...6b170ee828>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f6b17084c50>>] kwargs = {'item': <RunNb '/mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/pluggy/manager.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'> methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/mnt/data/jenkins/shiningpanda/jobs/62c67c92/vi...6b170ee828>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f6b17084c50>>] kwargs = {'item': <RunNb '/mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb'>} self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( methods, kwargs, > firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/pluggy/manager.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/mnt/data/jenkins/shiningpanda/jobs/62c67c92/vi...6b170ee828>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f6b17084c50>>] caller_kwargs = {'item': <RunNb '/mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb'>} firstresult = False def _multicall(hook_impls, caller_kwargs, firstresult=False): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( "hook call must provide argument %r" % (argname,) ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/pluggy/callers.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pluggy.callers._Result object at 0x7f6b1b9a4828> def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo if _py3: > raise ex[1].with_traceback(ex[2]) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/pluggy/callers.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/mnt/data/jenkins/shiningpanda/jobs/62c67c92/vi...6b170ee828>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f6b17084c50>>] caller_kwargs = {'item': <RunNb '/mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb'>} firstresult = False def _multicall(hook_impls, caller_kwargs, firstresult=False): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( "hook call must provide argument %r" % (argname,) ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/pluggy/callers.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <RunNb '/mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb'> def pytest_runtest_call(item): _update_current_test_var(item, "call") sys.last_type, sys.last_value, sys.last_traceback = (None, None, None) try: > item.runtest() ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/_pytest/runner.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <RunNb '/mnt/data/jenkins/workspace/DARIAH-Topics/notebooks/IntroducingGensim.ipynb'> def runtest(self): self._skip() with io.open(self.name,encoding='utf8') as nb: notebook = nbformat.read(nb, as_version=4) # TODO: which kernel? run in pytest's or use new one (make it option) _timeout = self.parent.parent.config.getini('nbsmoke_cell_timeout') kwargs = dict(timeout=int(_timeout) if _timeout!='' else 300, allow_errors=False, # or sys.version_info[1] ? kernel_name='python') ep = ExecutePreprocessor(**kwargs) with cwd(os.path.dirname(self.name)): # jupyter notebook always does this, right? > ep.preprocess(notebook,{}) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/nbsmoke/__init__.py:274: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nbconvert.preprocessors.execute.ExecutePreprocessor object at 0x7f6b17efdc18> nb = {'cells': [{'cell_type': 'markdown', 'metadata': {}, 'source': "# Topics – Easy Topic Modeling in Python\n\nThe text m...'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.6.5'}}, 'nbformat': 4, 'nbformat_minor': 1} resources = {}, km = None def preprocess(self, nb, resources, km=None): """ Preprocess notebook executing each code cell. The input argument `nb` is modified in-place. Parameters ---------- nb : NotebookNode Notebook being executed. resources : dictionary Additional resources used in the conversion process. For example, passing ``{'metadata': {'path': run_path}}`` sets the execution path to ``run_path``. km: KernelManager (optional) Optional kernel manager. If none is provided, a kernel manager will be created. Returns ------- nb : NotebookNode The executed notebook. resources : dictionary Additional resources used in the conversion process. """ with self.setup_preprocessor(nb, resources, km=km): self.log.info("Executing notebook with kernel: %s" % self.kernel_name) > nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/nbconvert/preprocessors/execute.py:361: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nbconvert.preprocessors.execute.ExecutePreprocessor object at 0x7f6b17efdc18> nb = {'cells': [{'cell_type': 'markdown', 'metadata': {}, 'source': "# Topics – Easy Topic Modeling in Python\n\nThe text m...'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.6.5'}}, 'nbformat': 4, 'nbformat_minor': 1} resources = {} def preprocess(self, nb, resources): """ Preprocessing to apply on each notebook. Must return modified nb, resources. If you wish to apply your preprocessing to each cell, you might want to override preprocess_cell method instead. Parameters ---------- nb : NotebookNode Notebook being converted resources : dictionary Additional resources used in the conversion process. Allows preprocessors to pass variables into the Jinja engine. """ for index, cell in enumerate(nb.cells): > nb.cells[index], resources = self.preprocess_cell(cell, resources, index) ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/nbconvert/preprocessors/base.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nbconvert.preprocessors.execute.ExecutePreprocessor object at 0x7f6b17efdc18> cell = {'cell_type': 'code', 'execution_count': 22, 'metadata': {'scrolled': False}, 'outputs': [{'output_type': 'error', 'en...sualization.PlotDocumentTopics(document_topics)\nshow(PlotDocumentTopics.interactive_heatmap(), notebook_handle=True)'} resources = {}, cell_index = 51 def preprocess_cell(self, cell, resources, cell_index): """ Executes a single code cell. See base.py for details. To execute all cells see :meth:`preprocess`. """ if cell.cell_type != 'code' or not cell.source.strip(): return cell, resources reply, outputs = self.run_cell(cell, cell_index) cell.outputs = outputs cell_allows_errors = (self.allow_errors or "raises-exception" in cell.metadata.get("tags", [])) if self.force_raise_errors or not cell_allows_errors: for out in outputs: if out.output_type == 'error': > raise CellExecutionError.from_cell_and_msg(cell, out) E nbconvert.preprocessors.execute.CellExecutionError: An error occurred while executing the following cell: E ------------------ E PlotDocumentTopics = visualization.PlotDocumentTopics(document_topics) E show(PlotDocumentTopics.interactive_heatmap(), notebook_handle=True) E ------------------ E E #x1B[0;31m---------------------------------------------------------------------------#x1B[0m E #x1B[0;31mAttributeError#x1B[0m Traceback (most recent call last) E #x1B[0;32m<ipython-input-22-3c545f10dd80>#x1B[0m in #x1B[0;36m<module>#x1B[0;34m#x1B[0m E #x1B[1;32m 1#x1B[0m #x1B[0mPlotDocumentTopics#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0mvisualization#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mPlotDocumentTopics#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mdocument_topics#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0;32m----> 2#x1B[0;31m #x1B[0mshow#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mPlotDocumentTopics#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0minteractive_heatmap#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mnotebook_handle#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0;32mTrue#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0m E #x1B[0;32m~/workspace/DARIAH-Topics/dariah_topics/visualization.py#x1B[0m in #x1B[0;36minteractive_heatmap#x1B[0;34m(self, palette, reverse_palette, tools, width, height, x_axis_location, toolbar_location, sizing_mode, line_color, grid_line_color, axis_line_color, major_tick_line_color, major_label_text_font_size, major_label_standoff, major_label_orientation, colorbar)#x1B[0m E #x1B[1;32m 283#x1B[0m #x1B[0mtools#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0mtools#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mtoolbar_location#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0mtoolbar_location#x1B[0m#x1B[0;34m,#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 284#x1B[0m #x1B[0msizing_mode#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0msizing_mode#x1B[0m#x1B[0;34m,#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0;32m--> 285#x1B[0;31m logo=None) E #x1B[0m#x1B[1;32m 286#x1B[0m fig.rect(x='Documents', y='Topics', source=source, width=1, height=1, E #x1B[1;32m 287#x1B[0m #x1B[0mfill_color#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0;34m{#x1B[0m#x1B[0;34m'field'#x1B[0m#x1B[0;34m:#x1B[0m #x1B[0;34m'Distributions'#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0;34m'transform'#x1B[0m#x1B[0;34m:#x1B[0m #x1B[0mmapper#x1B[0m#x1B[0;34m}#x1B[0m#x1B[0;34m,#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E E #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/plotting/figure.py#x1B[0m in #x1B[0;36mfigure#x1B[0;34m(**kwargs)#x1B[0m E #x1B[1;32m 1021#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 1022#x1B[0m #x1B[0;32mdef#x1B[0m #x1B[0mfigure#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m**#x1B[0m#x1B[0mkwargs#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0;32m-> 1023#x1B[0;31m #x1B[0;32mreturn#x1B[0m #x1B[0mFigure#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m**#x1B[0m#x1B[0mkwargs#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0m#x1B[1;32m 1024#x1B[0m #x1B[0mfigure#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__doc__#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0mFigure#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__doc__#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 1025#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E E #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/plotting/figure.py#x1B[0m in #x1B[0;36m__init__#x1B[0;34m(self, *arg, **kw)#x1B[0m E #x1B[1;32m 187#x1B[0m #x1B[0mkw#x1B[0m#x1B[0;34m[#x1B[0m#x1B[0;34m'title'#x1B[0m#x1B[0;34m]#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0mTitle#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mtext#x1B[0m#x1B[0;34m=#x1B[0m#x1B[0mtitle#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 188#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E #x1B[0;32m--> 189#x1B[0;31m #x1B[0msuper#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mFigure#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__init__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m*#x1B[0m#x1B[0marg#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0;34m**#x1B[0m#x1B[0mkw#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0m#x1B[1;32m 190#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 191#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mx_range#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0m_get_range#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mopts#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mx_range#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E E #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/model.py#x1B[0m in #x1B[0;36m__init__#x1B[0;34m(self, **kwargs)#x1B[0m E #x1B[1;32m 259#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m_document#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0;32mNone#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 260#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m_temp_document#x1B[0m #x1B[0;34m=#x1B[0m #x1B[0;32mNone#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0;32m--> 261#x1B[0;31m #x1B[0msuper#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mModel#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0m__init__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m**#x1B[0m#x1B[0mkwargs#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0m#x1B[1;32m 262#x1B[0m #x1B[0mdefault_theme#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mapply_to_model#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 263#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E E #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/core/has_props.py#x1B[0m in #x1B[0;36m__init__#x1B[0;34m(self, **properties)#x1B[0m E #x1B[1;32m 252#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 253#x1B[0m #x1B[0;32mfor#x1B[0m #x1B[0mname#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mvalue#x1B[0m #x1B[0;32min#x1B[0m #x1B[0mproperties#x1B[0m#x1B[0;34m.#x1B[0m#x1B[0mitems#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0;32m--> 254#x1B[0;31m #x1B[0msetattr#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mname#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mvalue#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E #x1B[0m#x1B[1;32m 255#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 256#x1B[0m #x1B[0;32mdef#x1B[0m #x1B[0m__setattr__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mname#x1B[0m#x1B[0;34m,#x1B[0m #x1B[0mvalue#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E E #x1B[0;32m~/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/bokeh/core/has_props.py#x1B[0m in #x1B[0;36m__setattr__#x1B[0;34m(self, name, value)#x1B[0m E #x1B[1;32m 287#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 288#x1B[0m raise AttributeError("unexpected attribute '%s' to %s, %s attributes are %s" % E #x1B[0;32m--> 289#x1B[0;31m (name, self.__class__.__name__, text, nice_join(matches))) E #x1B[0m#x1B[1;32m 290#x1B[0m #x1B[0;34m#x1B[0m#x1B[0m E #x1B[1;32m 291#x1B[0m #x1B[0;32mdef#x1B[0m #x1B[0m__str__#x1B[0m#x1B[0;34m(#x1B[0m#x1B[0mself#x1B[0m#x1B[0;34m)#x1B[0m#x1B[0;34m:#x1B[0m#x1B[0;34m#x1B[0m#x1B[0m E E #x1B[0;31mAttributeError#x1B[0m: unexpected attribute 'logo' to Figure, possible attributes are above, aspect_scale, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, css_classes, disabled, extra_x_ranges, extra_y_ranges, h_symmetry, height, hidpi, inner_height, inner_width, js_event_callbacks, js_property_callbacks, layout_height, layout_width, left, lod_factor, lod_interval, lod_threshold, lod_timeout, match_aspect, min_border, min_border_bottom, min_border_left, min_border_right, min_border_top, name, outline_line_alpha, outline_line_cap, outline_line_color, outline_line_dash, outline_line_dash_offset, outline_line_join, outline_line_width, output_backend, plot_height, plot_width, renderers, right, sizing_mode, subscribed_events, tags, title, title_location, toolbar, toolbar_location, toolbar_sticky, v_symmetry, width, x_range, x_scale, y_range or y_scale E AttributeError: unexpected attribute 'logo' to Figure, possible attributes are above, aspect_scale, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, css_classes, disabled, extra_x_ranges, extra_y_ranges, h_symmetry, height, hidpi, inner_height, inner_width, js_event_callbacks, js_property_callbacks, layout_height, layout_width, left, lod_factor, lod_interval, lod_threshold, lod_timeout, match_aspect, min_border, min_border_bottom, min_border_left, min_border_right, min_border_top, name, outline_line_alpha, outline_line_cap, outline_line_color, outline_line_dash, outline_line_dash_offset, outline_line_join, outline_line_width, output_backend, plot_height, plot_width, renderers, right, sizing_mode, subscribed_events, tags, title, title_location, toolbar, toolbar_location, toolbar_sticky, v_symmetry, width, x_range, x_scale, y_range or y_scale ../../shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.6/site-packages/nbconvert/preprocessors/execute.py:385: CellExecutionError