I was wondering how I would go about using Python to create a Graph with Mathematica. I want to be able to use python code to invoke mathematica to create a new graph, using data from a CSV file.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The old fashioned way to do what Yaroslav suggested is to just call the kernel (math) with the script switch e.g.
math -script graph.m. Wheregraph.mis either constructed beforehand and will load the csv file or is constructed on the fly by your python program.Can I ask why you want to use Mathematica for making the graph? There are lots of python (and other) utilities that will do it for you. There are lots of options listed here: graph survey.