예제 #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)'))