-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat: add option to display an app in a new browser window #977
Conversation
This looks awesome! But it doesn't seem to work for me... clicking on the button shows a new window being created but is immediately destroyed (using chrome, in both notebook and lab). |
This is something that could potentially be useful on the MAST side of things, depending on its requirements. We should check that it works. Otherwise we will need a way to disable this button for MAST, ideally via the config file. |
@kecnry I forgot chrome blocks popups by default. This can be changed here: chrome://settings/content/popups |
Also, using localhost instead of 127.0.0.1 seems to allow popups by default |
Firefox seems to open and then instantly close the new window. I have popups allowed for the page. |
It doesn't seem to be blocking the popup, but rather immediately closing/crashing it (as compared to other cases where popups are blocked and never even created). |
@havok2063 - I can run those tests with your standalone repo before we merge this and if not make sure you have a hook to disable the button. There are also some styling issues, especially in imviz (which has a taller toolbar and isn't vertically centering the button). |
Exactly what I'm seeing. |
Can you try right clicking? This should open a tab instead of a window, maybe this gives some more info. |
That results in behavior I've never seen before in a browser - the tab opens and then immediately crashes/closes. |
@mariobuikhuizen - similar behavior. It very briefly seems to start opening a new tab (just start the see the x button of a new tab expanding, blue background of an empty tab, and immediately disappears) |
Ah, seems to be my adblocker's fault (I use ublock origin) - disabling that and it works. @rosteen - can you confirm on your end? |
Did you try to turn your antivirus off? 😅 (Oh, nvm, didn't see Kyle's post above.) |
Well, at least that's consistent with opening a window 😅 I can't reproduce it. I'm setting up a fresh environment to see if that helps. |
Ahhh good call, uBlock Origin was killing it. After turning off my extensions it works. Looks awesome, I'll have to do a little more testing with it. |
Ok, great! |
Probably should add a warning on user facing doc about this. Maybe under known issues? Also please add change log. |
I'm not sure if there is any way around that or to detect when it happens and raise a message? Or if we should just handle it in the docs/tooltip text? It looks like this also breaks all tests as ipypopout is looking for a non-existing Kernel. I'll do more testing including embedded in MAST in the meantime! |
For MAST we might have to add the right |
@kecnry I had the same issue here that I showed you a week or two ago - in the popup window, if I open the model fitting plugin (which has a lot of content), the viewer/app resizes to the entire length of the plugin, rather than restricting the plugin height and adding a scrollbar. I think I showed you this in Voila, can't remember if you have a fix open for it already. |
Even if it works in the standalone repo, we may run into other issues when it's deployed in a MAST domain. It might be a good idea to include with this PR the option for hiding the button. Another question I have is how is this mode different than running Jdaviz in desktop app mode? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
The viewer stretches weirdly under some circumstances. Try this workflow:
|
I also saw the viewers stretching to match the length of the plugin tray, rather than the plugin tray being limited to the height of the app. |
- Button is hidden when data-base-url is not set - Enable button in MAST by setting: <body data-base-url="/" data-voila-host="http://mydomain:8888"
- fix: button is disappearing after clicking it - feat: expose windowName and windowFeatures to python
The doctype in ipypopout's HTML file was missing, putting the page in quirks-mode, which causes tables not to inherit the text color (and can cause many more rendering differences). This was fixed in v0.0.7
ddd07ed
to
58078dc
Compare
I installed this branch on Windows 10 (editable install). The standalone app does not load properly (i.e., On the terminal, I see this:
On the browser dev console: For comparison, when I run the same CLI from current |
FYI: this is the browser looking for source mapping (if you care about debugging js), it can be ignored. |
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.
@pllim I can't reproduce this issue in the standalone app on mac or windows. |
I will try again. It was on editable install, maybe I'll try a non-editable and see. 🤷 |
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 updated my dependencies on Windows and the weird wording is gone in both editable and non-editable installs. Works fine in "standalone" and "notebook" modes for me now.
The box zoom is a little weird but I don't think it is related as I remember @kecnry mentioned it separately before.
Since my approval is the second one, I will merge. Thanks!
Description
This pull request adds button to the app which will open it in a new browser window:
popout.mp4
Popout functionality is implemented in https://github.com/mariobuikhuizen/ipypopout
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?