ipython
Class info
Classes
| Name | Children | Inherits |
|---|---|---|
| BaseIPythonWidget prettyqt.ipython.baseipythonwidget Convenience class for a live IPython console widget running out-of-process. |
||
| InProcessIPythonWidget prettyqt.ipython.inprocessipythonwidget Convenience class for a live IPython console widget. |
||
| OutOfProcessIPythonWidget prettyqt.ipython.outofprocessipythonwidget Convenience class for a live IPython console widget running out-of-process. |
🛈 DocStrings
BaseIPythonWidget
Bases: RichJupyterWidget, WidgetMixin
Convenience class for a live IPython console widget running out-of-process.
Source code in prettyqt/ipython/baseipythonwidget.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
adjust_style_to_palette()
Adjust coloring of the terminal to current palette.
buffer() -> str
clear()
execute(source: str | None = None, hidden: bool = False, interactive: bool = False)
Execute a command in the frame of the console widget.
Source code in prettyqt/ipython/baseipythonwidget.py
get_selected_text() -> str
print_text(text: str, before_prompt: bool = False)
set_buffer(code: str) -> None
Set code string to Jupyter QtConsole buffer.
Source code in prettyqt/ipython/baseipythonwidget.py
InProcessIPythonWidget
Bases: BaseIPythonWidget
Convenience class for a live IPython console widget.
Source code in prettyqt/ipython/inprocessipythonwidget.py
eval(obj_name)
Pull object with name *obj_name from namespace.
Source code in prettyqt/ipython/inprocessipythonwidget.py
push_vars(var_dict)
Send python objects to IPYthon namespace.
Given a dictionary containing name / value pairs, push those variables to the IPython console widget.
Source code in prettyqt/ipython/inprocessipythonwidget.py
OutOfProcessIPythonWidget
Bases: BaseIPythonWidget
Convenience class for a live IPython console widget running out-of-process.
Source code in prettyqt/ipython/outofprocessipythonwidget.py
shutdown()
Stop IPython server process and clean up.