neuralib.dashboard.util

class neuralib.dashboard.util.ColorBarView[source]
__init__(render, key, palette, **kwargs)[source]

Create color map :param render: GlyphRenderer render :param key: key in the ColumnDataSource, which indicates the value changes :param palette:

Parameters:
  • render (GlyphRenderer)

  • key (str)

  • palette (str)

insert(fig)[source]
Parameters:

fig (figure)

class neuralib.dashboard.util.MsgLog[source]
__init__(value, **kwargs)[source]
Parameters:

value (str)

error_set: bool
on_message(message, reset)[source]

Example

>>> class View(View):
...   INSTANCE = None
...   def __init__(self, *arg, **kwargs):
...         View.INSTANCE = self
>>> def msg_log(*message: str, reset: bool = False)
...     View.INSTANCE.msg_log.on_message(message, reset)
Parameters:
  • message (str)

  • reset (bool) – If true, reset the mesasge log TextAreaInput

Returns:

property set_div: Div
neuralib.dashboard.util.change_html_format(input_file, *style)[source]

change style im embedded html in bokeh with existing <style> header

Parameters:
  • input_file (Path)

  • style (dict[str, str])

neuralib.dashboard.util.add_html_format(input_file, style)[source]

change style im embedded html in bokeh with new <style> header

Parameters:
  • input_file (Path)

  • style (dict[str, str])