Skip to content

Voila couldn't render modin-spreadsheet #50

@huyuhuster

Description

@huyuhuster

Environment

  • Operating System: windows
  • Python Version: $ python --version
  • How did you install modin-spreadsheet: pip install modin-spreadsheet
  • Python packages: $ pip freeze or $ conda list (please include modin-spreadsheet, notebook, and jupyterlab versions)
    modin 0.19.0
    modin-spreadsheet 0.1.2
    notebook 6.5.2 py39haa95532_0
    jupyter 1.0.0
    jupyter_client 7.3.4
    jupyter-console 6.6.2
    jupyter_core 5.2.0
    jupyter-server 1.23.4
    jupyterlab 3.5.3
    jupyterlab-pygments 0.1.2
    jupyterlab_server 2.19.0
    jupyterlab-widgets 1.0.0
  • Jupyter lab packages (if applicable): $ jupyter labextension list
    JupyterLab v3.5.3
    C:\ProgramData\Anaconda3\share\jupyter\labextensions
    jupyterlab-plotly v5.9.0 enabled ok
    @jupyter-widgets/jupyterlab-manager v3.0.0 enabled ok (python, jupyterlab_widgets)
    @pyviz/jupyterlab_pyviz v2.0.2 enabled ok (python, pyviz_comms)
    @voila-dashboards/jupyterlab-preview v2.2.0 enabled ok (python, voila)

Description of Issue

  • render the widgets
  • get some error:
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'ModinSpreadsheetModel' from module 'modin_spreadsheet'
Error: Script error for "modin_spreadsheet"
http://requirejs.org/docs/errors.html#scripterror
   at makeError (http://localhost:8888/voila/static/require.min.js:1:1067)
   at HTMLScriptElement.onScriptError (http://localhost:8888/voila/static/require.min.js:1:13218)

image

Reproduction Steps

  1. Inatsll the Voila
  2. Create a notebook with the code:
import modin_spreadsheet
import pandas as pd
df = pd.DataFrame({'A': [1.2, 'foo', 4], 'B': [3, 4, 5]})
df = df.set_index(pd.Index(['bar', 7, 3.2]))
view = modin_spreadsheet.show_grid(df)
view
  1. Click the button of voila
    image

...

What steps have you taken to resolve this already?

No
...

Anything else?

No
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions