Plus
class
Here's the reference for the Plus
class, with all its parameters, attributes, and methods.
dj_notebook.shell_plus.Plus
Plus(helpers)
Location of all the objects loaded by shell_plus and extra Jupyter-specific utilities.
PARAMETER | DESCRIPTION |
---|---|
helpers |
TYPE:
|
Source code in dj_notebook/shell_plus.py
90 91 |
|
csv_to_df
csv_to_df(filepath_or_string)
Read a CSV file into a Pandas DataFrame.
PARAMETER | DESCRIPTION |
---|---|
filepath_or_string |
TYPE:
|
Source code in dj_notebook/shell_plus.py
148 149 150 151 152 153 154 155 156 |
|
diagram
diagram(class_)
Draw a class diagram for a given class and its ancestors.
PARAMETER | DESCRIPTION |
---|---|
class_ |
TYPE:
|
Source code in dj_notebook/shell_plus.py
103 104 105 106 107 |
|
mermaid
mermaid(diagram)
Render a mermaid diagram.
PARAMETER | DESCRIPTION |
---|---|
diagram |
TYPE:
|
Source code in dj_notebook/shell_plus.py
117 118 119 |
|
model_graph
model_graph(model, max_nodes=20)
Draw a diagram of the specified model in the database.
PARAMETER | DESCRIPTION |
---|---|
model |
TYPE:
|
max_nodes |
TYPE:
|
Source code in dj_notebook/shell_plus.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
model_graph_schema
model_graph_schema()
Cached property for the graph data.
Source code in dj_notebook/shell_plus.py
121 122 123 124 125 126 127 128 129 |
|
print
print()
Print all the objects contained by the Plus object.
Source code in dj_notebook/shell_plus.py
109 110 111 |
|
read_frame
read_frame(qs)
Converts a Django QuerySet into a Pandas DataFrame.
PARAMETER | DESCRIPTION |
---|---|
qs |
TYPE:
|
Source code in dj_notebook/shell_plus.py
113 114 115 |
|