core\common.py:496: ModuleNotFoundError
In circumstances that I cannot reproduce in a small code example, I get the following error:

When looking at common.py, it seems that __main__ does indeed not exist. Does anybody know why and under what circumstances this is called?

```

_tcp\work\win-na-x64-release\py3\mre_venv3\lib\site-packages\pandas\core\base.py:61: in __str__

    return self.__unicode__()

_tcp\work\win-na-x64-release\py3\mre_venv3\lib\site-packages\pandas\core\frame.py:659: in __unicode__

    width, _ = console.get_console_size()

_tcp\work\win-na-x64-release\py3\mre_venv3\lib\site-packages\pandas\io\formats\console.py:68: in get_console_size

    if com.in_interactive_session():

_tcp\work\win-na-x64-release\py3\mre_venv3\lib\site-packages\pandas\core\common.py:503: in in_interactive_session

    return check_main()

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

 

    def check_main():

>       import __main__ as main

E       ModuleNotFoundError: No module named '__main__'

 

_tcp\work\win-na-x64-release\py3\mre_venv3\lib\site-packages\pandas\core\common.py:496: ModuleNotFoundError

```