Wrappers¶
wrap_holoviews(in_memory=False, scratch_dir=None, fsspec_fs=None, webdriver=None, num_retries=None)
¶
Wraps a function used to render a holoviews object so that it automatically saves the object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
in_memory |
bool
|
Whether to render the object in-memory. |
False
|
scratch_dir |
str | Path | None
|
The scratch directory to use. |
None
|
fsspec_fs |
Any | None
|
The fsspec filesystem to use. |
None
|
webdriver |
str | Callable | None
|
The webdriver to use. |
None
|
num_retries |
int | None
|
The number of retries to use. |
None
|
Returns:
Type | Description |
---|---|
Callable
|
The wrapped function. |
Source code in streamjoy/wrappers.py
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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
|
wrap_matplotlib(in_memory=False, scratch_dir=None, fsspec_fs=None)
¶
Wraps a function used to render a matplotlib figure so that it automatically saves the figure and closes it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
in_memory |
bool
|
Whether to render the figure in-memory. |
False
|
scratch_dir |
str | Path | None
|
The scratch directory to use. |
None
|
fsspec_fs |
Any | None
|
The fsspec filesystem to use. |
None
|
Returns:
Type | Description |
---|---|
Callable
|
The wrapped function. |