|
__require_notebook = (not __ispython3) or (__p[2] < '5') # Python 2.7 or 3.4 require Jupyter notebook |
The current implementation utilizes platform.python_version() and does a < '5' check against one character of the string.
A more stable way to check would be to use sys.version_info.major and sys.version_info.minor respectively.