nebari-dev / jupyterlab-nebari-mode

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Add commands to open URL in new window, and to deploy App in new window #7

Closed nenb closed 1 month ago

nenb commented 1 month ago

This PR adds a new command: deploy-app.

deploy-app

Reference Issues or PRs

https://github.com/nebari-dev/jhub-apps/issues/472

What does this implement/fix?

Put a x in the boxes that apply

Testing

Documentation

Access-centered content checklist

Text styling

Non-text content

Any other comments?

github-actions[bot] commented 1 month ago

Binder :point_left: Launch a Binder on branch nenb/jupyterlab-nebari-mode/deploy-app-ext

nenb commented 1 month ago

@krassowski Quick follow-up:

Great start! Do you plan to add the button to the toolbar and context menu in this PR or subsequent one?

I was under the impression that these would be configured in the settings in jhub-apps/nebari, rather than adding them here.

What's the usual practice? That an extension includes these settings by default, and then a user (e.g. nebari deployment) can disable them if they require?

krassowski commented 1 month ago

I was under the impression that these would be configured in the settings in jhub-apps/nebari, rather than adding them here.

I think its better to include them here in a single plugin rather than in nebari. This is because it will be much easier to test it if it is completely independent of nebari. jhub-apps currently has no JupyterLab extensions. We can later extract that plugin to make it live closer to jhub-apps.

krassowski commented 1 month ago

That an extension includes these settings by default, and then a user (e.g. nebari deployment) can disable them if they require?

Yes, it is much easier to:

than if we were to split the logic between the two.

kcpevey commented 1 month ago

Just wanted to mention that we need to keep in mind that jhub-apps is an optional feature of Nebari and therefore the changes we introduce here should also be safe for when jhub-apps is not present. (Maybe this is already true, I dont know about the technical details here 😀)

nenb commented 1 month ago

Some screenshots of what it is currently looking like:

Context Menu

Screenshot 2024-09-19 at 18 36 39

Main Menu and Toolbar

Screenshot 2024-09-19 at 18 36 49

New Tab on Click

Screenshot 2024-09-19 at 18 37 02
krassowski commented 1 month ago

Closing in favour of https://github.com/nebari-dev/jupyterlab-jhub-apps/pull/1 that was just merged :) :tada: