On Tue, Feb 3, 2009 at 7:12 PM, mabshoff <mabsh...@googlemail.com> wrote:
>
>
>
> On Feb 3, 7:07 pm, William Stein <wst...@gmail.com> wrote:
>
> <SNIP>
>
>> > It was the only icon I could find in the (admittedly short) time I
>> > looked.  Where could I get the icon (as large as possible)?  Also, if
>> > you can tell me what to do with dropped files I could easily add
>> > that.  i.e. how does one open a .sage file in the notebook from the
>> > command line.  I'm sure it's very simple, I just haven't looked at it
>> > yet.  Any other suggestions are welcome as well.
>>
>> Hmm... there might actually be no way to do that.   Just to start
>> thinking about this, we would need:
>>
>>  (1) a special URL to go to, 
>> e.g.,http://localhost:8000/open_file/absolute_path_to_file_on_local_filesy...
>>
>> and
>>
>>   (2) a command line option, e.g.,
>>
>> $ sage foo.sws
>>
>> would start a notebook server if it isn't already running, and once it
>> is, would call basically (1) above for the default sage notebook
>> server running from $DOT_SAGE/sage_notebook.
>
> I am not sure that will work too well.

Why not?    I can easily see how to implement (1) and (2).  I'm not
saying it will be easy to do -- it would likely take several hours
work -- but I don't see any technical problem with doing it.    I'm
sure somebody like Mike Hansen who knows the notebook code would
agree.   I would do the above by adding something to
.sage/sage_notebook that has the port of the currently running sage
notebook server (if one is running), then at a Resource in
sage/server/notebook/twist.py that handles uploading an sws (there is
already one, probably).  Then add a command line option to
sage/local/bin/sage-sage for handling sws files.

>  I can see two things:
>
>  (a) dropping a sws into firefox and having Sage deal with the event
> some way
>
>  (b) write something more full fledged on a CoCoA level and have that
> deal with drag & drop events
>
> Unfortunately I don't have the time, but some other people might have
> written code in that direction already.
>
>> William
>
> Cheers,
>
> Michael
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to