Ejemplo n.º 1
0
Archivo: main.py Proyecto: lordmauve/mu
 def add_jupyter_repl(self, kernel_manager, kernel_client):
     """
     Adds a Jupyter based REPL pane to the application.
     """
     kernel_manager.kernel.gui = 'qt4'
     kernel_client.start_channels()
     ipython_widget = JupyterREPLPane(theme=self.theme)
     ipython_widget.kernel_manager = kernel_manager
     ipython_widget.kernel_client = kernel_client
     self.add_repl(ipython_widget, _('Python3 (Jupyter)'))
Ejemplo n.º 2
0
 def add_jupyter_repl(self, kernel_manager, kernel_client):
     """
     Adds a Jupyter based REPL pane to the application.
     """
     kernel_manager.kernel.gui = 'qt4'
     kernel_client.start_channels()
     ipython_widget = JupyterREPLPane()
     ipython_widget.kernel_manager = kernel_manager
     ipython_widget.kernel_client = kernel_client
     ipython_widget.on_append_text.connect(self.on_stdout_write)
     self.add_repl(ipython_widget, _('Python3 (Jupyter)'))
Ejemplo n.º 3
0
 def add_jupyter_repl(self, kernel_manager, kernel_client):
     """
     Adds a Jupyter based REPL pane to the application.
     """
     kernel_manager.kernel.gui = 'qt4'
     kernel_client.start_channels()
     ipython_widget = JupyterREPLPane()
     ipython_widget.kernel_manager = kernel_manager
     ipython_widget.kernel_client = kernel_client
     ipython_widget.on_append_text.connect(self.on_stdout_write)
     self.add_repl(ipython_widget, _('Python3 (Jupyter)'))
Ejemplo n.º 4
0
 def add_jupyter_repl(self, repl):
     """
     Adds a Jupyter based REPL pane to the application.
     """
     kernel = repl.kernel
     kernel.gui = 'qt4'
     kernel_client = repl.client()
     kernel_client.start_channels()
     ipython_widget = JupyterREPLPane(theme=self.theme)
     ipython_widget.kernel_manager = repl
     ipython_widget.kernel_client = kernel_client
     self.add_repl(ipython_widget, _('Python3 (Jupyter)'))