Skip to content

Commit

Permalink
Backport PR spacetelescope#2420: fix: support for notebook 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen authored and meeseeksmachine committed Sep 5, 2023
1 parent 070a888 commit 5fa9adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Bug Fixes

- Fixes tracebacks from plugins opened in popout windows. [#2411]

- Fixes app not displaying properly in Notebook 7. [#2420]

Cubeviz
^^^^^^^

Expand Down
3 changes: 2 additions & 1 deletion jdaviz/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export default {
methods: {
checkNotebookContext() {
this.notebook_context = document.getElementById("ipython-main-app")
|| document.querySelector('.jp-LabShell');
|| document.querySelector('.jp-LabShell')
|| document.querySelector(".lm-Widget#main"); /* Notebook 7 */
return this.notebook_context;
},
getReadTheDocsLink() {
Expand Down

0 comments on commit 5fa9adf

Please sign in to comment.