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

Update gateway support with recent changes#4431

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
minrk merged 1 commit intojupyter:masterfromkevin-bates:apply-nb2kg-updates
Mar 6, 2019

Conversation

@kevin-bates
Copy link
Member

Convey notebook working directory to the gateway (nb2kg pr-21)

  • This allows users of containerized kernels to mount home directories on the containers/pods so as to mimic behaviors as if the kernel was local.

Support retrieval of kernelspec resources from the gateway (nb2kg pr-23)

  • This simply enables the three kinds of kernelspec resources (kernel.js, kernel.css, logo-*) to be returned when running against a gateway.
  • Since gateway returns kernelspecs inmodel form, we now test if the kernel spec info meets the model criteria (rather than add additional (and duplicate) handlers).
  • Requires Jupyter Kernel Gateway version 2.2.0 otherwise no resources are returned (as before the change).

@kevin-bateskevin-bates changed the titleUpdate gateway support with recent changes[WIP] Update gateway support with recent changesFeb 26, 2019
Convey notebook working directory to the gateway (nb2kg pr-21)Support retrieval of kernelspec resources from the gateway (nb2kg pr-23)
@kevin-bateskevin-bates changed the title[WIP] Update gateway support with recent changesUpdate gateway support with recent changesFeb 26, 2019
raise
else:
kernel_spec_resource=response.body
raisegen.Return(kernel_spec_resource)
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, since we require Python 3, we can usereturn kernel_spec_resource

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Ok - thanks. Since this is one of many gen.Returns, I think it makes sense to change these whenever we "make the sweep" to move to async/await - if that's okay with you.

def_kernelspecs_endpoint_default(self):
returnos.environ.get(self.kernelspecs_endpoint_env,self.kernelspecs_endpoint_default_value)

kernelspecs_resource_endpoint_default_value='/kernelspecs'
Copy link
Member

Choose a reason for hiding this comment

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

Does every endpoint need to be separately configurable? It seems to me like a single base path should be everything that's needed.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I believe these are configurable (in NB2KG is done via just envs) for cases when the gateway server (JKG or JEG) is behind a reverse proxy. This should be the last of them. (yeah, famous last words, I know. 😄)

Copy link
Member

Choose a reason for hiding this comment

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

ok, let's switch this over to a single configurable prefix before adding any more after this one.

kevin-bates reacted with thumbs up emoji
@minrkminrk added this to the6.0 milestoneMar 6, 2019
@minrkminrk merged commit88aae11 intojupyter:masterMar 6, 2019
@kevin-bateskevin-bates deleted the apply-nb2kg-updates branchJune 26, 2019 22:12
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsMar 27, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@minrkminrkminrk left review comments

Assignees

No one assigned

Projects

None yet

Milestone

6.0

Development

Successfully merging this pull request may close these issues.

2 participants

@kevin-bates@minrk

[8]ページ先頭

©2009-2025 Movatter.jp