[sage-support] Troubleshooting standalone scripting issues (seeking knowledge about interpreter and preparser)

2017-07-07 Thread nwilcox
Hello all, I am currently introducing myself to Sage, already having a fair level of python experience. I have installed SageMath 7.5.1 via the Launchpad PPA onto my Chromebook, which is running an Ubuntu 14.04 chroot on Intel x86_64 architecture. I wish to use Sage via standalone scripts, as

[sage-support] Re: Loading a module causes the __name__ == '__main__' block to execute

2017-07-07 Thread Jacob Bond
This happens both in Sage 7.3 on Ubuntu Linux (Chromebook) and in Sage 7.6 on CoCalc. On Friday, July 7, 2017 at 1:03:15 PM UTC-4, Jacob Bond wrote: > > > > I have a module that can also be run from the command line: > > def func(): > print('Hello!') > > if __name__ ==

[sage-support] Loading a module causes the __name__ == '__main__' block to execute

2017-07-07 Thread Jacob Bond
I have a module that can also be run from the command line: def func() print('Hello!') if __name__ == '__main__': func() When I try to load it in Sage, the main block is executed: sage: load('module.sage') Hello! sage: The bigger problem is that my main

Re: [sage-support] Difference in "layout = 'acyclic'" between local copy of sage and cocalc

2017-07-07 Thread Nikos Apostolakis
On Friday, July 7, 2017 at 10:41:18 AM UTC-4, William wrote: > > > On Fri, Jul 7, 2017 at 4:33 AM Nikos Apostolakis > wrote: > >> Dear group, >> >> The following: >> >>sage: foo = DiGraph([(1,4), (1,5), (2,4), (3,5)]) >>sage: foo.show(layout = 'acyclic') >> >>

Re: [sage-support] Adding a ws file to a course as handout

2017-07-07 Thread William Stein
On Fri, Jul 7, 2017 at 3:31 AM Ingo Dahn wrote: > I have a project on CoCalc and inside the project a course and a ws file > aside of the course. I'd like to add the file to the course as handout but > both search boxes in the handout tab don't show anything. > Please move

Re: [sage-support] Difference in "layout = 'acyclic'" between local copy of sage and cocalc

2017-07-07 Thread William Stein
On Fri, Jul 7, 2017 at 4:33 AM Nikos Apostolakis wrote: > Dear group, > > The following: > >sage: foo = DiGraph([(1,4), (1,5), (2,4), (3,5)]) >sage: foo.show(layout = 'acyclic') > > produces different output in CoCalc and in my local copy of Sage (7.2) and > , see the

[sage-support] Difference in "layout = 'acyclic'" between local copy of sage and cocalc

2017-07-07 Thread Nikos Apostolakis
Dear group, The following: sage: foo = DiGraph([(1,4), (1,5), (2,4), (3,5)]) sage: foo.show(layout = 'acyclic') produces different output in CoCalc and in my local copy of Sage (7.2) and , see the attached images. The difference is much more pronounced in other examples. Can I get my

[sage-support] Adding a ws file to a course as handout

2017-07-07 Thread Ingo Dahn
I have a project on CoCalc and inside the project a course and a ws file aside of the course. I'd like to add the file to the course as handout but both search boxes in the handout tab don't show anything. -- You received this message because you are subscribed to the Google Groups