#8473: notebook option to upload a .sws file
-----------------------------------+----------------------------------------
   Reporter:  olazo                |          Owner:  iandrus    
       Type:  enhancement          |         Status:  needs_work 
   Priority:  minor                |      Milestone:  sage-4.7.1 
  Component:  notebook             |       Keywords:             
Work_issues:                       |       Upstream:  N/A        
   Reviewer:  Karl-Dieter Crisman  |         Author:  Ivan Andrus
     Merged:                       |   Dependencies:             
-----------------------------------+----------------------------------------

Old description:

> It would be great for those of us who have installed Sage to be able
> to double click on these files and have sage open them in the
> notebook.
>
> Suporting a command on the likes of:
>
> {{{
> sage -notebook /path/to/worksheet.sws
> }}}
>
> would be a very good step in this direction.
>
> Depends on #693; apply only [attachment:trac_8473-sagenb.2.patch]
>
> Syntax is
> {{{
> sage -notebook upload="/path/to/worksheet.sws"
> }}}
>

> The changes to extcode (specifically for the Mac app) have been moved to
> #11026.

New description:

 It would be great for those of us who have installed Sage to be able
 to double click on these files and have sage open them in the
 notebook.

 Suporting a command on the likes of:

 {{{
 sage -notebook /path/to/worksheet.sws
 }}}

 would be a very good step in this direction.

 Depends on #693; apply only [attachment:trac_8473-sagenb.2.patch] to the
 notebook repository.

 Syntax is
 {{{
 sage -notebook upload="/path/to/worksheet.sws"
 }}}


 The changes to extcode (specifically for the Mac app) have been moved to
 #11026.

--

Comment(by kcrisman):

 This needs to be (slightly) rebased for #10652.  I can't tell immediately
 whether the extra filetypes allowed there need any other changes to this
 patch - my sense is probably not?  Anyway, that shouldn't be too hard.

 Yeah, the problem on the computer where this doesn't work quite right is
 probably the same as yours - because I also have a nonstandard browser
 (well, Firefox) as default there.  Switching the default browser to Safari
 removes the problem.

 I really want to give this positive review so that I can review #11026,
 #10556, and #10555, but it seems like it's not great that one would have
 to use Safari on Mac for this to work properly (and who knows on other
 systems where I haven't tested this?).

 What's particularly odd is that `sage-open` (in the scripts directory) is
 getting the correct browser for me, as far as I can tell, in either case
 (Safari or FF).  But the way sage/misc/viewer.py operates is a little
 mysterious - `sage-native-execute` shouldn't have to run `sage-open` on OS
 X.

 Any thoughts?  I'm sorry for the delay in reviewing this, I was busy with
 Cygwin and running the workshop in my Sage time this summer.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8473#comment:25>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to