There was an error while loading. Please reload this page.
1 parent f02b548 commit 6c84005Copy full SHA for 6c84005
pandas/io/formats/console.py
@@ -95,7 +95,10 @@ def in_interactive_session():
95
from pandas import get_option
96
97
def check_main():
98
- import __main__ as main
+ try:
99
+ import __main__ as main
100
+ except ModuleNotFoundError:
101
+ return get_option('mode.sim_interactive')
102
return (not hasattr(main, '__file__') or
103
get_option('mode.sim_interactive'))
104
0 commit comments