# Set interpreter interpreter = interpreter() interpreter.user_ns['interp'] = interpreter interpreter.user_ns.update(locals()) # Set Shell Widget widget = QtGui.QWidget() layout = QtGui.QHBoxLayout(widget) shellwdgt = get_shell_class()(interpreter) editor = ParadigmContainer(None, None) interpreter.user_ns['editor'] = editor session = Session() session.debug = True interpreter.user_ns['session'] = session pm = session.project_manager pm.discover() proj = session.project_manager.load('Koch') interpreter.user_ns['pm'] = pm interpreter.user_ns['proj'] = proj interpreter.user_ns['dlpy'] = proj.model['koch_curve.lpy'] interpreter.user_ns['dpy'] = proj.model['simulator.py'] interpreter.user_ns['dwf'] = proj.model['koch_wf.wpy'] layout.addWidget(editor) layout.addWidget(shellwdgt)
def debug(self): from openalea.oalab.session.session import Session session = Session() self.interp.user_ns['session'] = session session.debug = True