We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_ipython
NameError
1 parent 558e428 commit be9b8aeCopy full SHA for be9b8ae
pyviz_comms/__init__.py
@@ -55,6 +55,8 @@ class extension(param.ParameterizedFunction):
55
56
def __new__(cls, *args, **kwargs):
57
if _in_ipython:
58
+ from IPython import get_ipython
59
+
60
exec_count = get_ipython().execution_count # noqa: F821
61
extension._repeat_execution_in_cell = (exec_count == cls._last_execution_count)
62
# Update the last count on this base class only so that every new instance
0 commit comments