« first day (2436 days earlier)      last day (2057 days later) » 

3:02 AM
So far have been using MMA/Python interop for two things, data augmentation/synthesis, and data visualization, could be a good replacement for TensorBoard.
 
 
4 hours later…
7:27 AM
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.
 
 
1 hour later…
8:48 AM
@b3m2a1 -->
@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.
 
9:08 AM
@Szabolcs Hmm, seems interesting. Thanks for the hint.
The point of using SAT for this was mostly based on the idea of searching for some other properties than just planarity at the same time.
 
 
5 hours later…
1:48 PM
@Szabolcs Thanks, I'll drop you a line when I get to this.
 
2:24 PM
@b3m2a1 Oh dang, that's nice!
 
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\\"] ?
 
3:30 PM
@vasili111
Import[FileNameJoin[{NotebookDirectory[], "signal.dat"}], "List"]
 
@halirutan It works. Thank you :)
 
 
1 hour later…
4:44 PM
@Szabolcs Huh that's a new one for me. I'm not used to the "Unknown Error". I'll get it up and running again.
 
6:16 PM
@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.
 
No, it doesn't use that
 
Shit
 
FindPython does find something, but it's not clear what
 
I'll fix that in an upcoming push. I'm currently writing docs / usage help.
 
6:20 PM
However, commands either hang, or the link dies
 
FindPython is poorly named. It finds an installed python runtime.
If it's not getting installed the LinkObject isn't pointing at anything
And I'm not handling this well
 
I tried FindPython[] again and now it's None
Then tried the same thing as in the screenshot above, and now it just hangs
 
I've been focused on getting the bidirectional interface working but I'll get InstallPython cleaned up.
 
Strange that it is not deterministic
 
It uses a TimeConstrained LinkWrite 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?
 
6:44 PM
@b3m2a1 Also PATH, but the separator is ;, not :
But I rarely use Windows these days. It's mostly Mac.
 
@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.
 
 
2 hours later…

« first day (2436 days earlier)      last day (2057 days later) »