jupyter-xeus / xeus-python

Jupyter kernel for the Python programming language
BSD 3-Clause "New" or "Revised" License
433 stars 73 forks source link

How to set to a different python version #274

Open sathyaprakashg opened 4 years ago

sathyaprakashg commented 4 years ago

When i try to create new jupyter notebook, I get below options Python 2 Python 3 Python 3.5 Python 3.6 xpython

xpython is not providing me option to choose python version.

When I create xpython and tries to see python version, below is the output i got sys.version_info(major=3, minor=6, micro=0, releaselevel='final', serial=0)

So, xpython is using Python 3.6 in my machine but pyspark does not support python version 3.6

When I try to run below statement

from pyspark.sql.functions import *

I got this error TypeError: namedtuple() missing 3 required keyword-only arguments: 'verbose', 'rename', and 'module'

Does xpython supports python 3.5 or earlier, if so how do i swith to different python version when using xpython?

SylvainCorlay commented 4 years ago

Many thanks for posting.

We build different versions of xeus-python for each version of Python - as you can see on anaconda https://anaconda.org/conda-forge/xeus-python/files

Although we should probably specify the python version as part of the kernel name in the kernel spec.

A PR would be super welcome!