Python code environment - Custom

Options
rona
rona Registered Posts: 47 ✭✭✭✭✭

Hello,

Please, could you explain the use of Python code environment with the option 'Custom (lookup in PATH)' ?

- In which context to use it ?
- How to do the setup ? which information is expected for 'Python executable' field ?

thanks

Annie

Best Answer

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Answer ✓
    Options

    Hi,

    [TL;DR] The "Custom (lookup in PATH)" option is meant for very specific use cases when the normal mechanisms (Python X.x from PATH) don't work. It is rarely needed and we recommend using the normal mechanisms as much as possible.

    Do not forget to install the corresponding Python version on the server, as DSS will not do that for you.

    [More details]

    There are a few options on this screen:

    Screenshot 2020-04-21 at 12.15.59.png

    The normal mechanisms expect the python executables to be in the PATH variable. To be more precise, the exact syntax we expect is "python2.7", "python3.5" or "python3.6". You can test it easily if you have server access by typing "python2.7" in your shell.

    The "Custom (lookup in PATH)" option will require you to provide a full path to a Python executable or an alias which points to it. This can introduce some risks when you work across several DSS nodes, as the paths may differ. When moving from Design to Automation or API nodes, DSS needs to be able to rebuild the code-env.

    Finally, you will need to be very careful to use only supported Python versions. As of today, this does not include Python 3.7, which are currently qualifying.

    Hope it helps,

    Alex

Answers

  • MRvLuijpen
    MRvLuijpen Partner, L2 Admin, L2 Designer, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Frontrunner 2022 Participant, Neuron 2023 Posts: 107 Neuron
    Options

    Hello @Alex_Combessie
    .

    I have a follow-up question about the python versions:

    1) We don't have python 3.7 installed, but Python 3.8. Is it possible/easy to remove the Python3.7 from the list and have the python 3.8 added to the list instead?

    Thanks for your response.

    Marc Robert

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Options

    Hi @MRvLuijpen

    As of today (DSS 9), python 3.8 is not supported by DSS.

    Cheers,

    Alex

  • MRvLuijpen
    MRvLuijpen Partner, L2 Admin, L2 Designer, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Frontrunner 2022 Participant, Neuron 2023 Posts: 107 Neuron
    Options

    Hi @Alex_Combessie
    . Thanks for the reply.

    Is it possible to remove the option for Python3.5 entry in the dropdown box?

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Options

    Hi @MRvLuijpen

    It is not possible to remove this entry in the UI, as Python 3.5 is one of the versions officially supported by DSS.

    Cheers,

    Alex

  • MRvLuijpen
    MRvLuijpen Partner, L2 Admin, L2 Designer, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Frontrunner 2022 Participant, Neuron 2023 Posts: 107 Neuron
    Options

    Thank you @Alex_Combessie
    for your reply.

    Cheers,

    Marc Robert

  • SGhos151
    SGhos151 Registered Posts: 1 ✭✭✭
    Options

    Hi @Alex_Combessie
    ,

    could you please tell me how can I install a different version of Python in DSS?

    Thanks.

Setup Info
    Tags
      Help me…