-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add comm-message handlers and support for debugPort config retrieval #375
Conversation
881d31c
to
68d19f6
Compare
Adjusted api to be compatible with comms callbacks, added interface for some standard handlers for kernel-provided comms |
68d19f6
to
a356529
Compare
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
override val targetId: String | ||
get() = OPEN_DEBUG_PORT_TARGET | ||
|
||
override val onReceiveAction: CommMessageProcessCallback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe val
=> fun
and rename?
@@ -205,6 +208,10 @@ class ReplForJupyterImpl( | |||
|
|||
private val resourcesProcessor = LibraryResourcesProcessorImpl() | |||
|
|||
init { | |||
registerKnownCommsHandlersOnStartUp(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to refactor repl class in a way it would be fully configurable via factory. Please make it possible to configure (switch off/on, add specific handlers) registration of these comms via factory
db0dc9c
to
3295b26
Compare
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/repl/creating/BaseReplFactory.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/defaultCommHandlers.kt
Outdated
Show resolved
Hide resolved
3295b26
to
016bf95
Compare
src/main/kotlin/org/jetbrains/kotlinx/jupyter/repl/creating/ReplFactory.kt
Outdated
Show resolved
Hide resolved
…ugPortComm messages in kernel
016bf95
to
8fa1bcd
Compare
No description provided.