Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5 erp5
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • 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
None
Milestone
None
Assign milestone
Time tracking
Source branch: print_redirection
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7