Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

Python 3 for code-env inside a plugin

Solved!
FrankThales
Level 1
Python 3 for code-env inside a plugin

Hi, When I create my code-env managed for my plugin I have just python 2.7.

How can I use python 3.6 ?

How my admin need to modify the DSS install to have multiple Python version ?

Thank you

0 Kudos
2 Solutions
AlexT
Dataiker

Hi,

To add additional Python version for code environment of plugin you will need to edit

code-env/python/desc.json, -> acceptedPythonInterpreters to include different python version:

Here is an example that will allow Python 3.6 and 3.7 and request Pandas 1
{
"acceptedPythonInterpreters": ["PYTHON36", "PYTHON37"],
"forceConda": false,
"installCorePackages": true,
"installJupyterSupport": false,
"corePackagesSet": "PANDAS10"
}


Thanks,

View solution in original post

0 Kudos
FrankThales
Level 1
Author

Thank you very much. All is OK for me now

View solution in original post

0 Kudos
2 Replies
AlexT
Dataiker

Hi,

To add additional Python version for code environment of plugin you will need to edit

code-env/python/desc.json, -> acceptedPythonInterpreters to include different python version:

Here is an example that will allow Python 3.6 and 3.7 and request Pandas 1
{
"acceptedPythonInterpreters": ["PYTHON36", "PYTHON37"],
"forceConda": false,
"installCorePackages": true,
"installJupyterSupport": false,
"corePackagesSet": "PANDAS10"
}


Thanks,

0 Kudos
FrankThales
Level 1
Author

Thank you very much. All is OK for me now

0 Kudos