#7997: Use ast to replace display hook hack
-------------------------------------+--------------------------------------
Reporter: acleone | Owner: was
Type: enhancement | Status: needs_work
Priority: major | Milestone:
Component: notebook | Keywords:
Author: Alex Leone, Tim Dumol | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------------+--------------------------------------
Comment(by acleone):
Wow - that's awesome - great work Tim! I definitely need to read up on
the `multiprocessing` module. Using `multiprocessing.Pipe()` and
`multiprocessing.Connection()` is definitely the way to go. Also it
should be fairly easy to create a remote implementation with
`multiprocessing.connection.Client()`.
Just a note for others on how this works: The worker process that executes
the code has a `multiprocessing.Connection()` back to the manager process.
That connection can `send(obj)` and `recv() -> obj`, where `obj` is a
picklable object, in this case:
* Manager to Worker: `ExecutionData(preparse, print_expressions, string,
tempdir, temp_file.name, transaction_number)` objects
* Worker to Manager: either `(transaction_number, data)` where `data` is
a string from `sys.stdout` or `sys.stderr`, or `(transaction_number, 0)`
where the `0` means that the computation is finished.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7997#comment:9>
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.