Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Logged notebook type#5425

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kevin-bates merged 1 commit intojupyter:masterfrompinarkavak:log-notebook-type
May 6, 2020

Conversation

@pinarkavak
Copy link

No description provided.

@pinarkavakpinarkavak mentioned this pull requestMay 5, 2020
Copy link
Member

@kevin-bateskevin-bates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Great idea@pinarkavak - thank you. I just had some minor comments.

self._kernel_connections[kernel_id]=0
self.start_watching_activity(kernel_id)
self.log.info("Kernel started: %s"%kernel_id)
self.log.info("Kernel type: %s"%self._kernels[kernel_id].kernel_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Rather than introduce another INFO entry that might result in ambiguities when starting kernels simultaneously, would you be okay with extendingKernel started: <id> with a comma-separated "type" clause:Kernel started: <id>, type: <type>?

Zsailer and pinarkavak reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hmm - wondering ifname: might be more indicative and closer to what we use in the code?

Zsailer and pinarkavak reacted with thumbs up emoji
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks Kevin, great points, my first intention was not to change any existing log, but updated the code to address your comments.

self._kernel_connections[kernel_id]=0
self.start_watching_activity(kernel_id)
self.log.info("Kernel started: %s"%kernel_id)
self.log.info("Kernel started %s, name: %s"%(kernel_id,self._kernels[kernel_id].kernel_name))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for the updates Pinar. I hate to nit, but I think the: followingstarted should probably be retained. The only reason is in case thereare "log scrappers", they'll probably be looking forKernel started: - which is along the lines of your thoughts about preserving log entries. I suspect any applications that perform log analysis and need the kernel start time would be targeting "Kernel started:" as their token and not so much the content to EOL.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks Kevin! I totally agree, I somehow removed it without noticing while updating the log, added it back.

kevin-bates reacted with thumbs up emoji
Copy link
Member

@kevin-bateskevin-bates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM - thanks Pinar!

@kevin-bateskevin-bates merged commita291f31 intojupyter:masterMay 6, 2020
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsMar 25, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@kevin-bateskevin-bateskevin-bates approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@pinarkavak@kevin-bates

[8]ページ先頭

©2009-2025 Movatter.jp