Ask Your Question
3

How to use an external text editor to create script (interact) and render it in a browser

asked 2010-10-08 00:05:36 -0500

Lynda gravatar image

I am not very confortable with the notebook interface to edit long files (no colorisation, etc...), but I would like to be able to use interact objects. Is there a way to:

  1. Create a file in a text editor of my choice
  2. run it in sage
  3. have the ouput automatically opened in the browser

Thanks for your answers

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2010-10-08 02:14:15 -0500

niles gravatar image

I don't know how to do precisely what you asked, but I often write code in a separate file and attach it to a notebook cell (just write e.g. "attach path/to/filename.sage"). Then the notebook session knows all the functions I've defined in the file.

Hopefully this will work for you,

Niles

edit flag offensive delete link more
1

answered 2010-10-17 21:09:15 -0500

kkumer gravatar image

Another possiblity, which is maybe Firefox specific, is to use a browser add-on that makes it possible to edit editboxes in external editors. There was 'mozex' extension that did that, but now I am using It's All Text! Firefox add-on which creates a small 'edit' button next to each Sage input cell, which opens edits in external gvim editor. This can give you also python syntax highlighting.

edit flag offensive delete link more

Comments

To follow-up on myself: In google chrome browser I get the same feature by using vrome extension.

kkumer gravatar imagekkumer ( 2012-06-01 01:58:58 -0500 )edit

Another option if you are on Windows is "Text Editor Anywhere": http://www.listary.com/text-editor-anywhere

davitenio gravatar imagedavitenio ( 2013-07-10 05:31:19 -0500 )edit
0

answered 2010-10-08 11:23:29 -0500

nbruin gravatar image

In the worksheet you can upload and/or create data files via the "data" dropdown. You can access the files there using

load DATA+"your filename"

If the file is a ".py" or a ".sage" file, you can edit it in your browser, with syntax highlighting. Alternatively, you can use your own editor and reupload the file every time you make changes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2010-10-08 00:05:36 -0500

Seen: 929 times

Last updated: Oct 17 '10