Skip to content

Commit f300ca2

Browse files
committed
InteractiveShell
1 parent 3629a8d commit f300ca2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastcore/imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def in_colab():
8484
def in_jupyter():
8585
"Check if the code is running in a jupyter notebook"
8686
if not in_ipython(): return False
87-
return ipython_shell().__class__.__name__ == 'ZMQInteractiveShell'
87+
return 'InteractiveShell' in ipython_shell().__class__.__name__
8888

8989
def in_notebook():
9090
"Check if the code is running in a jupyter notebook"

0 commit comments

Comments
 (0)