Ask Your Question

PHPirates's profile - activity

2020-09-07 19:31:31 +0100 commented answer jmol cannot run while plot3d

@slelievre I don't remember, and I don't have that Windows system anymore. However, I can say it works fine in Firefox under Linux, Sage 9.1.

2018-07-10 14:01:21 +0100 received badge  Famous Question (source)
2018-06-02 13:52:46 +0100 commented answer jmol cannot run while plot3d

... or use viewer='tachyon' when threejs also doesn't work (Windows 8, Sage 8.1).

2018-04-13 22:05:49 +0100 received badge  Notable Question (source)
2018-01-03 12:47:41 +0100 received badge  Popular Question (source)
2017-12-25 18:36:39 +0100 received badge  Nice Question (source)
2017-12-20 08:51:23 +0100 received badge  Scholar (source)
2017-12-20 08:44:16 +0100 commented answer Make PyCharm recognise the Sage python interpreter

PyCharm now recognises the Sage python, thanks! Indeed, maybe this question should be about getting PyCharm to recognise the Sage python and the next question about the problems I encounter when actually trying to from sage.all import *.I will ask it soon!

2017-12-14 19:01:59 +0100 commented answer How to use Sagetex with windows?

FYI, Sagemath 8 is ported to Windows, released this summer :)

2017-11-25 11:32:20 +0100 commented answer Make PyCharm recognise the Sage python interpreter

Found out that in my C:/Program Files/SageMath 8.0/runtime/opt/sagemath-8.0/local/lib/python2.7/site-packages/sage/env.py on line 88 it makes use of os.uname, only available on unix systems. There must be much more of these things, so I do not think this will ever work on Windows?

Thanks for all the help, and who knows maybe this question will become relevant in the future again :)

2017-11-25 11:04:44 +0100 commented answer Make PyCharm recognise the Sage python interpreter

I also tried setx PYTHONPATH "C:/Program Files/SageMath 8.0/runtime/opt/sagemath-8.0/local/lib/python2.7/site-packages/sage" /M (sets the system environment variable) in the hope that it would make python find the packages, but no luck.

A few years ago I managed to add a package (which included c libraries) to python and I think I did that by just pointing my PYTHONPATH to it, but can't remember exactly.

I know Sage is made for linux. But it's not for nothing that Sage was made available for Windows this summer. I think to make Sage more generally accepted it would help much if it would be available for Windows and it would have a proper IDE to work with. At least in my university it would, and I would very much like to spread the word of Sage, also to Windows!

2017-11-25 10:59:55 +0100 commented answer Make PyCharm recognise the Sage python interpreter

Oh thanks that is very interesting, because that means that you indeed managed to get the module installed in Python. The module is not in C:\Python27\Lib\site-packages for me (obviously) but only regular python packages. So I guess I need to figure out how to get the module there, and then PyCharm will be able to find it as a module. Any clue how you got it there?

Does, by any chance, your python2 site-packages/sage contain packages from algebras to typeset? I have those, and for every package an all.pyc as well, in the directory C:\Program Files\SageMath 8.0\runtime\opt\sagemath-8.0\local\lib\python2.7\site-packages\sage. I think this is the directory of Sage's python2?

After sage -sh then printenv SAGE_ROOT is correct, so that should be okay right?

2017-11-24 12:23:37 +0100 received badge  Editor (source)
2017-11-24 12:23:37 +0100 edited question Make PyCharm recognise the Sage python interpreter

How do I configure PyCharm so I can edit and run Sage scripts? When I tried selecting Sage's python in C:\Program Files\SageMath 8.0\runtime\opt\sagemath-8.0\local\bin PyCharm said 'cannot setup SDK'.

I am using SageMath 8 on Windows.

[Edit] Rephrased the question because it is partly solved (and is pretty difficult), asking new question for the remainder so it is more clear.

2017-11-24 11:40:16 +0100 commented answer Make PyCharm recognise the Sage python interpreter

(edited comment) Okay so I'm running now inside sage shell

SAGE_ROOT="C:/Program Files/SageMath 8.0/runtime/opt/sagemath-8.0"

sage -sh

cd "C:/Program Files/JetBrains/PyCharm 2017.2.3/bin"

./pycharm.exe

but in pycharm I get no module named sage.all. (I selected my system wide python2.7 as interpreter). That also happens when trying to import sage from python2 in the normal command prompt.

2017-11-24 10:59:20 +0100 received badge  Supporter (source)
2017-11-23 18:35:42 +0100 received badge  Student (source)