Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !150

ERP5 Jupyter kernel: capture print without messing with sys.stdout

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Douglas requested to merge Camata/erp5:print_redirection into master Jul 27, 2016
  • Overview 2
  • Commits 4
  • Pipelines 0
  • Changes 3

Instead of swapping sys.stdout temporally, which is not a nice thing to do in an ERP5 cluster architecture where code can run in different nodes, an AST processor was created to modify print calls and redirect them to a custom class that will collect all the printed data.

The idea of this implementation is based on Script (Python) objects code.

@Tyagov, please review when you can.

Depends on !144 (merged).

This closes the following bug report: https://nexedi.erp5.net/bug_module/20160718-2079490

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: print_redirection
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7