Opened 12 years ago
Last modified 6 years ago
#11080 closed enhancement
move notebook to flask/wsgi-based notebook — at Version 20
Reported by: | Jason Grout | Owned by: | jason, mpatel, was |
---|---|---|---|
Priority: | blocker | Milestone: | sage-5.2 |
Component: | notebook | Keywords: | sd31 sd35.5 |
Cc: | Dan Drake, Jason Grout, Karl-Dieter Crisman, Mike Hansen, Radoslav Kirov, Tim Dumol, Ivan Andrus, Steven Trogdon | Merged in: | |
Authors: | Mike Hansen, Rado Kirov, William Stein, Jason Grout | Reviewers: | Rado Kirov, Dan Drake, Jason Grout |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | #11078, #11874 | Stopgaps: |
Description (last modified by )
This ticket tracks the progress to move the notebook to a flask/wsgi-based notebook.
spkg:
- http://sage.math.washington.edu/home/jason/twisted-11.0.0.spkg (from #11874)
- http://sage.math.washington.edu/home/jason/sagenb-0.9.0.spkg (this includes all dependencies not already in Sage)
apply:
- Apply the patch from #11078 to the normal sage repository
DO NOT apply trac-11080-sagenb_dependencies-spkg.patch to the $SAGE_ROOT repository (this updates the spkg dependencies lists to include the new spkg). (that patch is only if we end up using a sagenb_dependencies spkg)
Relevant code repository: http://code.google.com/r/jasongrout-flask-sagenb/
Explicit instructions: Replace $SAGE_ROOT with the root sage directory
cd $SAGE_ROOT ./sage -f http://sage.math.washington.edu/home/jason/twisted-11.0.0.spkg ./sage -f http://sage.math.washington.edu/home/jason/sagenb-0.9.0.spkg cd devel/sage ../../sage -hg qimport http://trac.sagemath.org/sage_trac/raw-attachment/ticket/11078/trac_11078.patch ../../sage -hg qpush cd ../../ ./sage -br
Change History (20)
comment:1 Changed 12 years ago by
Cc: | Dan Drake added |
---|
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 11 years ago by
Description: | modified (diff) |
---|---|
Keywords: | sd31 added |
comment:4 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:5 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:6 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:7 Changed 11 years ago by
Authors: | Mike Hansen, Rado Kirov → Mike Hansen, Rado Kirov, William Stein, Jason Grout |
---|---|
Dependencies: | → #11078 |
Description: | modified (diff) |
comment:8 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:9 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:10 Changed 11 years ago by
Dependencies: | #11078 → #11078, #11874 |
---|
comment:11 Changed 11 years ago by
Status: | new → needs_review |
---|
comment:12 Changed 11 years ago by
(for future reference, after this is merged, jmol is a high priority. These two tickets deal with these changes:
- #11496 (update jmol script in local/bin to reflect move of jmol directory to local)
- #11503 (updated spkg and paths for move of jmol directory)
- #9238 (for reference -original Jmol enhancement ticket but heavily laden with pre-flask notebook stuff)
Again, this is only FYI and for further reference.
comment:13 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:14 Changed 11 years ago by
I get the following error when I try to apply the spkg dependencies patch. Everything else seems to work. I'm still checking functionality...
applying /home/jonathan/.sage/temp/VB_Ubuntu_11/26614/tmp_0.patch unable to find 'spkg/install' for patching 1 out of 1 hunks FAILED -- saving rejects to file spkg/install.rej unable to find 'spkg/standard/deps' for patching 4 out of 4 hunks FAILED -- saving rejects to file spkg/standard/deps.rej spkg/install: No such file or directory spkg/standard/deps: No such file or directory abort: patch failed to apply
comment:15 Changed 11 years ago by
With 4.8.alpha4, what is described here does not work. I redid everything. The .spkgs seem to install without error. The patch for this ticket does not work and the notebook fails to launch with the error:
/home/jonathan/Documents/sage-4.8.alpha4/<ipython console> in <module>() /home/jonathan/Documents/sage-4.8.alpha4/devel/sagenb/sagenb/notebook/notebook_object.py in __call__(self, *args, **kwds) 202 """ 203 def __call__(self, *args, **kwds): --> 204 return self.notebook(*args, **kwds) 205 206 notebook = run_notebook.notebook_twisted /home/jonathan/Documents/sage-4.8.alpha4/devel/sagenb/sagenb/notebook/run_notebook.py in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, require_login, accounts, openid, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets) 442 if open_viewer: 443 "Open viewer automatically isn't fully implemented. You have to manually open your web browser to the above URL." --> 444 return run(port) 445 446 def get_admin_passwd(): /home/jonathan/Documents/sage-4.8.alpha4/devel/sagenb/sagenb/notebook/run_notebook.py in run(port) 427 os.chdir(cwd) 428 if e == 256: --> 429 raise socket.error 430 431 return True
comment:16 Changed 11 years ago by
It's possible that the SAGE_ROOT patch needs to be rebased to 4.8.alpha4. Let me check. Thanks for the test
comment:17 Changed 11 years ago by
Description: | modified (diff) |
---|
Jonathan,
I think the problem is that you didn't apply the patch here to the SAGE_ROOT repository. I've updated the instructions above with explicit commands.
comment:18 Changed 11 years ago by
I'm checking now into the error you posted in your second. It appears that there is indeed a problem with the sagenb spkg not overwriting the old notebook.
comment:19 Changed 11 years ago by
Description: | modified (diff) |
---|
For future reference, here are the instructions if we had a sagenb_dependencies spkg. DON'T USE THESE--use the instructions in the description of the ticket.
cd $SAGE_ROOT ./sage -hg qimport http://trac.sagemath.org/sage_trac/raw-attachment/ticket/11080/trac-11080-sagenb_dependencies-spkg.patch ./sage -hg qpush ./sage -f http://sage.math.washington.edu/home/jason/sagenb_dependencies-20111216.spkg ./sage -f http://sage.math.washington.edu/home/jason/twisted-11.0.0.spkg ./sage -f http://sage.math.washington.edu/home/jason/sagenb-0.9.0.spkg cd devel/sage ../../sage -hg qimport http://trac.sagemath.org/sage_trac/raw-attachment/ticket/11078/trac_11078.patch ../../sage -hg qpush cd ../../ ./sage -br
comment:20 Changed 11 years ago by
Description: | modified (diff) |
---|
removed #11078 from list as the fix is included in the 11503 command line patch.