modin-project / modin-spreadsheet

An interactive grid for sorting, filtering, and editing DataFrames in Jupyter notebooks
Apache License 2.0
21 stars 5 forks source link

Cant import Modin.Spreadsheet after installation #52

Open Algaliareptile opened 5 months ago

Algaliareptile commented 5 months ago

Environment

Description of Issue

cant import modin.spreedsheat after pip install modin[all] modin.spreedsheat doesnt even exist then

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[11], line 1
----> 1 import modin.spreadsheet

ModuleNotFoundError: No module named 'modin.spreadsheet'

this also doesnt work:

# This notebook expects that Modin and Ray are installed, e.g. by `pip install modin[ray]`.
# For all ways to install Modin see official documentation at:
# https://modin.readthedocs.io/en/latest/installation.html
​
​
# modin-spreadsheet is the pip distribution name, modin_spreadsheet is the import name
import modin_spreadsheet
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[8], line 7
      1 # This notebook expects that Modin and Ray are installed, e.g. by `pip install modin[ray]`.
      2 # For all ways to install Modin see official documentation at:
      3 # https://modin.readthedocs.io/en/latest/installation.html
      4 
      5 
      6 # modin-spreadsheet is the pip distribution name, modin_spreadsheet is the import name
----> 7 import modin_spreadsheet

File C:\Python311\Lib\site-packages\modin_spreadsheet\__init__.py:6
      3 except ImportError:
      4     raise ImportError("Please run `pip install modin`")
----> 6 from .grid import (
      7     enable,
      8     disable,
      9     set_defaults,
     10     on,
     11     off,
     12     set_grid_option,
     13     show_grid,
     14     SpreadsheetWidget,
     15 )
     16 from ._version import get_versions
     19 def _jupyter_nbextension_paths():

File C:\Python311\Lib\site-packages\modin_spreadsheet\grid.py:558
    554     else:
    555         return str(x)
--> 558 @widgets.register()
    559 class SpreadsheetWidget(widgets.DOMWidget):
    560     """
    561     The widget class which is instantiated by the ``show_grid`` method. This
    562     class can be constructed directly but that's not recommended because
   (...)
    598 
    599     """
    601     _view_name = Unicode("ModinSpreadsheetView").tag(sync=True)

TypeError: register() missing 1 required positional argument: 'widget' 

Question

have I done my setup wrong? hasthe documentation changed or are the examples outdated?

rootsmusic commented 5 months ago

@Algaliareptile (The installation instructions are in README.) You should comment in https://github.com/modin-project/modin/issues/4844#issuecomment-1727534690 and link to this issue.