Python3 in Custom Plugin
![gblack686](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar4.png)
gblack686
Partner, Registered Posts: 62 Partner
I'm trying to use Python 3 within my plugin. My current environment is using Python36 as its Jupyter interpretor, but when I check the logs, it still looks like Python 2.7 is being inherited.
'/mnt/dataiku/DATA_DIR/pyenv/lib/python27.zip'
Is there a way to change this for an individual plugin? My main desire for Python 3 is using f-string formatting in my code.
Best Answer
-
you can specify a what python packages and versions the plugin wants by adding a code env definition in the plugin (see https://doc.dataiku.com/dss/latest/plugins/reference/other.html#code-environments) . You can adjust the python versions used by specifying them in acceptedPythonInterpreters