Data360 Analyze

 View Only
  • 1.  what is are pre requisites to execute python 3

    Posted 03-25-2020 12:14

    Hello everyone

     

    What are the pre requisites to execute Python scripts in analyze ? 

     

    i´m trying to execute some python 3 scripts .however , i haven´t had success yet . 

     

    what should i do to execute this python 3 codes which works in jupyter for example ?

     

    is is compatible with python 3 ?



  • 2.  RE: what is are pre requisites to execute python 3

    Employee
    Posted 03-26-2020 08:06

    The current version of Data360 Analyze leverages the Python 2 language. 

    We are exploring options to allow a future release of Analyze to leverage a 'Bring Your Own Python3' installation. However, this is not a committed roadmap item at this time.

    If you are using a Linux server instance you may be able to use a Transform node to execute an external Python 3 script, for example adapting the following code:

    import os
    os.system("/path/to/python3 /path/to/your/script.py -whateverparameter")

     

    If you needed to read back results you could use the os.popen() function instead. 

    While the above does not execute the Python 3 script within Analyze, it does permit Analyze to orchestrate the execution of a Python 3 script within the context of an Analyze data flow.