fixing copypaste mistake

This commit is contained in:
Romain Dorgueil
2016-12-28 11:49:09 +01:00
parent cebb8df173
commit 96c9b55fec
2 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1,3 @@
from bonobo.util.helpers import jupyter_run
from .plugin import JupyterOutputPlugin

View File

@ -1,23 +1,21 @@
from IPython.core.display import display
from bonobo.core.plugins import Plugin
from bonobo.ext.jupyter.widget import BonoboWidget
try:
import selenium
import IPython.core.display
except ImportError as e:
import logging
logging.exception(
'You must install selenium to use the bonobo selenium extension. Easiest way is to install the '
'optional "selenium" dependencies with «pip install bonobo[selenium]», but you can also install a '
'You must install Jupyter to use the bonobo Jupyter extension. Easiest way is to install the '
'optional "jupyter" dependencies with «pip install bonobo[jupyter]», but you can also install a '
'specific version by yourself.')
class JupyterOutputPlugin(Plugin):
def initialize(self, context):
self.widget = BonoboWidget()
display(self.widget)
IPython.core.display.display(self.widget)
def run(self, context):
self.widget.value = [repr(component) for component in context.parent.components]