Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 141
    • Merge requests 141
  • 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
  • nexedi
  • erp5erp5
  • Merge requests
  • !150

Closed
Created Jul 27, 2016 by Douglas@CamataContributor
  • Report abuse
Report abuse

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

  • Overview 2
  • Commits 4
  • 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
Reviewer
Request review from
Time tracking
Source branch: print_redirection
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7