Skip to content

check if we are in ipython env #816

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

highker
Copy link

@highker highker commented Aug 11, 2025

Summary:
In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch register the flush function upon a cell exiting.

Differential Revision: D79982702

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 11, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@highker highker force-pushed the export-D79982702 branch 2 times, most recently from 3159ef0 to d5bd27c Compare August 12, 2025 02:35
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@highker highker force-pushed the export-D79982702 branch 2 times, most recently from c1b6141 to c1c5194 Compare August 12, 2025 03:36
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@highker highker force-pushed the export-D79982702 branch 2 times, most recently from 465ede2 to bdc357d Compare August 12, 2025 23:43
highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 13, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
highker pushed a commit to highker/monarch that referenced this pull request Aug 16, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

Summary:
Provide sync flush so it is guaranteed all the flushed logs on the
remote procs will be streamed back and flushed on client's stdout/stderr.

Differential Revision: D80051803
Summary:
there is no way to tail local procs; simply disallow it; I don't quite
like the new interface introduced. RFC is needed.

Differential Revision: D80063700
Summary: force sync flush upon mesh stop

Differential Revision: D80310284
highker pushed a commit to highker/monarch that referenced this pull request Aug 16, 2025
Summary:

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

highker pushed a commit to highker/monarch that referenced this pull request Aug 16, 2025
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
Summary:
Pull Request resolved: meta-pytorch#816

In ipython notebook, a cell can end fast. Yet the process can still run in the background.
However, the background process will not flush logs to the existing cell anymore.
The patch registers the flush function upon a cell exiting.

Differential Revision: D79982702
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79982702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants