Skip to content

Commit

Permalink
Merge pull request #363 from astrofrog/fix-density-scatter
Browse files Browse the repository at this point in the history
Fix density map in scatter viewer for many points
  • Loading branch information
astrofrog authored Jul 12, 2023
2 parents aab97d0 + 1c3e2d9 commit eff2a12
Show file tree
Hide file tree
Showing 17 changed files with 995 additions and 354 deletions.
10 changes: 3 additions & 7 deletions glue_jupyter/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import os
import weakref

import ipywidgets as widgets
from IPython.display import display
import ipyvue

from glue.core.application_base import Application
from glue.core.link_helpers import LinkSame
Expand All @@ -13,7 +11,8 @@
from glue.core.edit_subset_mode import (NewMode, ReplaceMode, AndMode, OrMode,
XorMode, AndNotMode)

from glue_jupyter.utils import _update_not_none, validate_data_argument
from glue_jupyter.utils import (_update_not_none, validate_data_argument,
_register_custom_vue_components)
from glue_jupyter.widgets.subset_select_vuetify import SubsetSelect
from glue_jupyter.widgets.subset_mode_vuetify import SelectionModeMenu

Expand Down Expand Up @@ -54,10 +53,7 @@ def __init__(self, data_collection=None, session=None, settings=None):

super(JupyterApplication, self).__init__(data_collection=data_collection, session=session)

for name in ['glue-float-field', 'glue-throttled-slider']:
file = f'{name.replace("-", "_")}.vue'
ipyvue.register_component_from_file(
None, name, os.path.join(os.path.dirname(__file__), 'widgets', file))
_register_custom_vue_components()

try:
from glue.main import load_plugins
Expand Down
Loading

0 comments on commit eff2a12

Please sign in to comment.