Exemplo n.º 1
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(theme=self.theme)
     ipython_widget.kernel_manager = kernel_manager
     ipython_widget.kernel_client = kernel_client
     self.add_repl(ipython_widget, _('Python3 (Jupyter)'))
Exemplo 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)'))
Exemplo 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)'))