Ask Your Question

MathF13's profile - activity

2019-07-12 01:46:36 -0600 received badge  Notable Question (source)
2019-07-12 01:46:36 -0600 received badge  Popular Question (source)
2019-04-14 19:33:35 -0600 received badge  Supporter (source)
2019-04-14 18:20:31 -0600 commented question 3d graphics not displayed

@Emmanuel Charpentier, I see that I have Oracle Java version 8

2019-04-14 09:56:57 -0600 received badge  Nice Question (source)
2019-04-14 07:16:06 -0600 asked a question loaded file not found

I am trying to load a python script into sage notebook, with commands load(''), and attach('').

But I am getting the error: IOError: did not find file

The file is there! I am using sage 8.6 on Windows 10.

sage: load('C:\\Program Files (x86)\\MyJournal\\Images\\')

UPDATE Sage loads the file from my home directory.

I seems that Sage just does not have access to Program Files directory.

IOError                                   Traceback (most recent call last)
<ipython-input-104-057b25088154> in <module>()
----> 1 load('C:\\Program Files (x86)\\MyJournal\\Images\\')

/opt/sagemath-8.6/local/lib/python2.7/site-packages/sage/misc/persist.pyx in sage.misc.persist.load (build/cythonized/sage/misc/persist.c:2470)()
    135     if sage.repl.load.is_loadable_filename(filename):
--> 136         sage.repl.load.load(filename, globals())
    137         return

/opt/sagemath-8.6/local/lib/python2.7/site-packages/sage/repl/ in load(filename, globals, attach)
    233             break
    234     else:
--> 235         raise IOError('did not find file %r to load or attach' % filename)
    237     ext = os.path.splitext(fpath)[1].lower()

IOError: did not find file 'C:\\Program Files (x86)\\MyJournal\\Images\\' to load or attach
2019-04-14 05:30:11 -0600 received badge  Editor (source)
2019-04-14 02:16:20 -0600 received badge  Student (source)
2019-04-13 19:23:24 -0600 asked a question 3d graphics not displayed

I am new to Sage. I use SageMath 8.6 on Windows 10. 2D plotting works, but not 3d. For example this produced no graphics but just the: π™Άπš›πšŠπš™πš‘πš’πšŒπšœπŸΉπšπ™Ύπš‹πš“πšŽπšŒπš

sage: x, y = var('x,y')
sage: g = plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
sage: show(g)

I use Chrome.

With the suggested option:

sage: show(g,figsize=8, viewer="threejs", frame=False,axes=True)

it works now!

It works also with:

sage: show(g,figsize=8, viewer="threejs", axes=True)

And with:

sage: show(g,figsize=8, viewer="threejs")

It looks like viewer option should be there for 3D to work on windows 10 with Chrome.

SageMath is great! With Python it is much more friendlier than Mathematica.