mmatera / iwolfram

A jupyter kernel for Wolfram Mathematica

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you install it on windows and so does it have interactive plots

CodeBulletin opened this issue · comments

How do you install it on windows and so does it have interactive plots

Well, this pkg is kind of hard to use... And not yet succeeded.

  1. I tried to cd to the dir, pip install -e .

only return error.

So, I read the source code of setup.py

I saw

wmmexec = None
if "--mma-exec" in sys.argv:
    idx = sys.argv.index("--mma-exec")
    sys.argv.pop(idx)
    candidate = sys.argv.pop(idx)
    print("trying ", candidate)
    try:
        starttext = get_start_text(candidate)
        if starttext.startswith("Mathematica"):
            print("Using Wolfram Mathematica")
            wmmexec = candidate

So I use python setup.py --mma-exec "C:\Program Files\Wolfram Research\Mathematica\11.3\Mathematica.exe"

get

trying  C:\Program Files\Wolfram Research\Mathematica\11.3\Mathematica.exe
    command valid. Trying....
D:\Program Files\Python3.8.5\lib\subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
D:\Program Files\Python3.8.5\lib\subprocess.py:844: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdout = io.open(c2pread, 'rb', bufsize)
trying with MathKernel
trying with wolframscript
trying with Mathics
Couldn't find a Mathics/Mathematica interpreter.

Now I am out of patience. 👀Wait others.

Sorry, I just tested it in linux. To have a good installer in windows would be nice, but I do not have the time to work on it now.