Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send master_printf output to Python's stdout #785

Merged
merged 1 commit into from Mar 27, 2019
Merged

Send master_printf output to Python's stdout #785

merged 1 commit into from Mar 27, 2019

Conversation

ChristopherHogan
Copy link
Contributor

Closes #782. This causes all output to appear within a Jupyter notebook. However, it's not perfect yet, as anything printed from MPB or libctl still goes to C stdout, and hence, the console.
@stevengj, @oskooi

@stevengj
Copy link
Collaborator

stevengj commented Mar 26, 2019

MPB has a similar function called mpi_one_printf, so in principle we could do the same thing there. For libctl we'd have to rename all of the printf calls to ctl_printf to add a callback.

@stevengj stevengj merged commit 1b52498 into NanoComp:master Mar 27, 2019
@ChristopherHogan ChristopherHogan deleted the chogan/cstdout_to_py branch March 27, 2019 17:19
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants