示例#1
0
文件: main.py 项目: yonghuming/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)'))
示例#2
0
文件: main.py 项目: martinohanlon/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()
     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)'))
示例#3
0
文件: main.py 项目: tangjie133/mu1
 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)'))