#693: Script to spawn a browser / start notebook.
---------------------------+------------------------------------------------
   Reporter:  boothby      |       Owner:  boothby   
       Type:  enhancement  |      Status:  needs_work
   Priority:  major        |   Milestone:  sage-4.3  
  Component:  notebook     |    Keywords:            
Work_issues:               |      Author:  Tim Dumol 
   Upstream:  N/A          |    Reviewer:            
     Merged:               |  
---------------------------+------------------------------------------------
Changes (by was):

  * status:  needs_review => needs_work
  * upstream:  => N/A


Comment:

 On OS X this doesn't work at all.  Depending on what I do either I get two
 notebook servers running simultaneously on the same directory (bad), or I
 get "Another twistd server is running, PID 40940".

 On OS X there is no /proc filesystem.  However, when I run this code from
 this patch:
 {{{
         try:
             print 1
             # First check using /proc directory
             if os.path.exists('/proc/%d'  % twistd_pid):
                 launch_browser_to_nb()
                 return
             else:
                 remove_pidfile(twistd_pid_path)
         except:
             print 2
 }}}
 I don't see "2" printed, i.e., no exception is raised.   That's clear if
 you read the code -- you don't raise an exception.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/693#comment:5>
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