Ask Your Question

Hi-Angel's profile - activity

2019-04-18 12:20:02 -0600 received badge  Student (source)
2019-04-04 01:32:53 -0600 commented answer Get output of a .py file in a browser

Adding .show() simply adds a text output Graphics object consisting of 36 graphics primitives, but I don't get it in a browser (or even in a PNG viewer for that matter). If that helps, when I run the same code directly from sage interactive prompt, I get a bit different output Launched png viewer for Graphics object consisting of 36 graphics primitives.

2019-04-03 14:34:38 -0600 asked a question Get output of a .py file in a browser

It seems like basic question, but I already spent about 2 hours, tried jupyter, command line, different combinations, different commands, lots of stuff…

Basically, I have file test.py with one line of content, taken straight from docs:

plot(graphs.HeawoodGraph())

I want to evaluate it, and get a picture of the plot in a browser.

What I don't want:

  • to open some external app for PNG files because in future I gonna need interactivity
  • to open the file in some text editor inside a browser because I already have it opened in Emacs
  • to get errors about graphs being undefined because when I execute in sage terminal, it's all correctly defined.
  • to search for imports to run every particular sage example from docs, because typing those examples directly in sage interactive interpreter works just fine (the examples don't include imports), so I see no reason to put an unnecessary effort over that.
2019-04-03 14:34:38 -0600 asked a question Evaluate sage py

It seems like basic question, but I already spent about 2 hours, tried jupyter, command line, different combinations, different commands, lots of stuff…

Basically, I have file test.py with one line of content, taken straight from docs:

plot(graphs.HeawoodGraph())

I want to evaluate it in a browser.

What I don't want:

  • to open some external app for PNG files because in future I gonna need interactivity
  • to open the file in some text editor inside a browser because I already have it opened in Emacs
  • to get errors about graphs being undefined because when I execute in sage terminal, it's all correctly defined.