Why use Python 2 version and not 3

I recently noticed when running a python program on Mode that the version in use is Python 2 instead of 3.

I'd expect that Python 3 being more futuristic and recommended should be the version in use or is there an option to switch versions within Mode.

There are quite some differences between Python 2 and 3 syntax - is there some form of compatibility for those with preferences for Python 3.

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Yes, the python tutorial from mode ( https://community.modeanalytics.com/python/ ) is V 2, but not mentioned as such.

    Reply Like
  • The notebooks feature is great!  But Python 3 should be supported.  (IMO, it should be the default!)


    Python 3 is used by the majority of the ecosystem.  The exact figure depends on where you look, but here are two supporting articles:

    > We asked, "Which version of Python do you use the most?" Python 3 is a strong leader at 75%, and Python 2 is used as the main interpreter by only 25%. Python 3 is growing rapidly; in the 2016 survey, 60% were using Python 2 and 40% Python 3.

    > Python 3 is used by [53% of respondents, and] 69% of developers working in IT for less than 3 years.


    It's supported by the vast majority of libraries and frameworks now, probably due in large part to the fact that python 2 has end of life scheduled for 2020:

    > There will be no Python 2.8. ... 2.7 will receive bugfix support until January 1, 2020. All 2.7 development work will cease in 2020.

    Reply Like
  • Hi Zion / John / Kirby - thanks for writing in and sharing your thoughts.

    Adding support for Python 3 into the integrated notebook environment is an often requested feature and something we are actively investigating. I don't have additional detail to share beyond that, but I can assure you this is something we are seriously investigating.

    Reply Like 1
Like2 Follow
  • Status Answered
  • 1 yr agoLast active
  • 3Replies
  • 424Views
  • 4 Following