Use pyjulia package. Convert your data set to list of list and pass to Julia
On Wednesday, November 2, 2016 at 1:43:27 PM UTC-5, Alexei Serdiuk wrote: > > Hi, > > I'm new to Julia and, unfortunately, I'm almost zero to Python. > I need to call Julia code from Python. This code must do some operations > and then return it back to Python. > > I have an example for calling Java: > def solve_it(input_data): > > > # Writes the inputData to a temporay file > > > tmp_file_name = 'tmp.data' > tmp_file = open(tmp_file_name, 'w') > tmp_file.write(input_data) > tmp_file.close() > > > # Runs the command: java Solver -file=tmp.data > > > process = Popen(['java', 'Solver', '-file=' + tmp_file_name], stdout= > PIPE) > (stdout, stderr) = process.communicate() > > > # removes the temporay file > os.remove(tmp_file_name) > > > return stdout.strip() > > > Would you please help me to create this code for Julia? > Thanks. >