Example #1
0
 def load_nb(cls, inline=True):
     """
     Loads any resources required for display of plots
     in the Jupyter notebook
     """
     load_notebook(inline)
     with param.logging_level('ERROR'):
         cls.notebook_context = True
         cls.comm_manager = JupyterCommManager
Example #2
0
 def load_nb(cls, inline=True):
     """
     Loads any resources required for display of plots
     in the Jupyter notebook
     """
     load_notebook(inline)
     with param.logging_level('ERROR'):
         try:
             ip = get_ipython()  # noqa
         except:
             ip = None
         if not ip or not hasattr(ip, 'kernel'):
             return
         cls.notebook_context = True
         cls.comm_manager = JupyterCommManager
         state._comm_manager = JupyterCommManager