aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2023-04-24 12:10:20 +0100
committerDavid Spickett <david.spickett@linaro.org>2023-08-04 11:16:43 +0100
commitfbec83cbe3ffcb53586f365651c6e208be3d1880 (patch)
tree045d3034af0bb7caaf9fc565d5c21aeda6c92f3a /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
parent34ffc30a90d7ee1c57a57d4bf3a548d7374f7f51 (diff)
downloadllvm-fbec83cbe3ffcb53586f365651c6e208be3d1880.zip
llvm-fbec83cbe3ffcb53586f365651c6e208be3d1880.tar.gz
llvm-fbec83cbe3ffcb53586f365651c6e208be3d1880.tar.bz2
[llvm][TableGen][Jupyter] Add configurable default reset behaviour
Often you are doing one of 2 things: * Building a larger example from many small cells. * Showing many small isolated examples. The default so far has followed iPython, where cells are connected by default (in its case, the interpreter state backing them sticks around). This change adds a new magic `%config` where you can change the setting `cellreset` to change that behaviour (this is currently the only setting). Also added is a `%noreset` magic so that along with `%reset` you can override the default for one particular cell. The default is equivalent to `%config cellreset off`. If you then wanted to reset in a cell, you can just do %reset to override it. (this is what the current notebooks do) If you instead do `%config cellreset on`, cells always reset and you can choose not to using `%noreset`. The setting is named `cellreset` not `reset` to differentiate it a bit more from the one off command `reset`. The demo notebook has been updated with examples of this in action. Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D149055
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions