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

Make it easier for extensions to customize the ServerApp #879

Merged
merged 3 commits into from
Jul 7, 2022

Conversation

minrk
Copy link
Contributor

@minrk minrk commented Jun 16, 2022

e.g. a custom ServerApp subclass, or inserting steps prior to initialize.

I've been looking into how to enable JupyterHub's "disable user config" feature, and this isn't really feasible because ServerApp is instantiated and fully configured inside the initialize_server, so I'd have to override the whole initialize_server method.

Being able to insert a custom ServerApp subclass and/or modify it should give JupyterHub the hook we need to implement this.

e.g. a custom ServerApp subclass, or inserting steps prior to `initialize`
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2022

Codecov Report

Merging #879 (d167290) into main (6fea5d8) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #879      +/-   ##
==========================================
+ Coverage   72.28%   72.29%   +0.01%     
==========================================
  Files          65       65              
  Lines        7974     7978       +4     
  Branches     1332     1332              
==========================================
+ Hits         5764     5768       +4     
  Misses       1804     1804              
  Partials      406      406              
Impacted Files Coverage Δ
jupyter_server/extension/application.py 73.56% <100.00%> (+0.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6fea5d8...d167290. Read the comment docs.

Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM! I'll wait a day for other maintainers to weigh in.

@Zsailer Zsailer merged commit 204a004 into jupyter-server:main Jul 7, 2022
@minrk minrk deleted the make_serverapp branch August 4, 2022 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants