rayoptics.qtgui.ipyconsole module

Support creation of an iPython console, with rayoptics environment

create_ipython_console(gui_parent, opt_model, title, orig_x, orig_y, view_width, view_ht, add_panel_fcts=None)[source]

create a iPython console with a rayoptics environment

class ConsoleWidget(**kwargs: Any)[source]

Bases: RichJupyterWidget

push_vars(variableDict)[source]

Given a dictionary containing name / value pairs, push those variables to the Jupyter console widget

clear()[source]

Clears the terminal

print_text(text)[source]

Prints some plain text to the console

execute_command(command)[source]

Execute a command in the frame of the console widget

staticMetaObject = PySide6.QtCore.QMetaObject("ConsoleWidget" inherits "RichJupyterWidget": )