So far have been using MMA/Python interop for two things, data augmentation/synthesis, and data visualization, could be a good replacement for TensorBoard.
Argh, my brain hurts. I'm trying to think of how a Boolean satisfiability constraint could be formed for planarity testing of a graph represented by an incidence matrix.
@kirma See here: pdfs.semanticscholar.org/680f/… I wanted to implement this in Mma but didn't have time. Genus computation is more general than planarity testing.
I am trying to import from file with sig = Import["signal.dat", "List"] but getting "Import::nffil: File not found during Import.". The notebook is in the same folder as signal.dat. What can be reason for error?
But this works: sig = Import["c:\\a\\signal.dat", "List"] . How not give full path and point to the same folder as nonebook?
Also I found that sig = Import["signal.dat", "List"] works if used with SetDirectory["c:\\a\\"]
But is there a way to point for notebook directory In the import command without use of SetDirectory["c:\\a\\"] ?
@b3m2a1 How do I set the path to Python? Py3 required? I'd need to use a specific anaconda environment then (virtualenv), but I think pointing to a specific python binary should be enough ... How do I do that though?
It is python3 required. The first argument to PyInstall is a version spec. I need to look at the code to see exactly what I expect but I think if you pass a binary I just use that. If not I need to support that anyway.
It uses a TimeConstrainedLinkWrite type thing and checks for an $Aborted
Really I should check for the expected result instead
Dunno why I didn't
If it finds that the link is garbage it just cleans it up
I added some ridiculous timeout of like 10 seconds just to get things up and running, but really it should be under 2
I'm gonna change FindPython to FindInstalledPython just so people don't get confused...
Hm... I wonder what happened that StartProcess failed. I looked at the code and the passed binary is getting passed through to it but StartProcess didn't like it.
@Szabolcs I'm sorry but I probably won't have time to fix this fully until tonight or so. I'll let you know when things are clean and ready for a new try.
@Szabolcs do you use Windows? If so, what's the equivalent of the Unix $PATH variable?
@Szabolcs Oh good to know. I'll need to support that someday. The reason I need that is that Mathematica doesn't use the system-level PATH so I need to kludge it in.