In BellaDati ML Studio it is possible to use Python libraries and scripts. To be able to use them, Anaconda needs to be installed on the server.
Settings up Anaconda for Python
- Download Anaconda from official site and install it (both versions 2.7 and 3.7 are supported).
- Copy path to file python.exe which is located in the folder where Anaconda was installed (for example C:\Anaconda2\python.exe).
- Open BellaDati ML Studio and go to Settings.
- Paste the path to python.exe to "Path to Python executable" field.
- Save the Settings.
Adding and removing Python Scripts in Projects
Python scripts can be attached to a project by uploading them from the Files sections.
It is also possible to remove the file from the project by clicking on the delete icon.
USING PYTHON SCRIPTS IN PROJECTS
Python script can be executed from the code by using function executePythonScript(). This function is used with several parameters. The first one is mandatory and it is always the Python script, either name of the file or directly the Python code. The rest of parameters if optional. It can be InputStream parameter and (or) any number of String parameters.
Error "Python executable is not defined or does not exist." is displayed.
Please make sure that you have set the correct path to the file python.exe. This error can also happen when BellaDati cannot access the file because it does not have correct access rights, e. g. when the Anaconda folder is located inside user's home directory (C:\Users\nameofuser\Anaconda2).