qgrid: qgrid does not appear
I am trying to load a qgrid from a pandas dataframe, but when I run:
import qgrid
import pandas as pd
df=pd.DataFrame([dict(idx=0,A=1),dict(idx=2,A=2)])`
Nothing happens (no error or anything else). Here are errors listed in my JS console:
Couldn’t create a view for model id ‘d7522ce5e25148848c5e49c7fdf8f795’ – TypeError: require is not a function(…) (anonymous function) @ utils.js:760 z @ VM218:22R @ VM218:22 (anonymous function) @ VM218:22 g @ VM218:22
utils.js:760 Could not create view – WrappedError {stack: “Error: Couldn’t create a view for model id 'd7522c…39d168d24e1b201697c328:1:0), <anonymous>:22:8069)”, message: “Couldn’t create a view for model id ‘d7522ce5e25148848c5e49c7fdf8f795’”, error_stack: Array[3]}(anonymous function) @ utils.js:760 z @ VM218:22 R @ VM218:22 C @ VM218:22T @ VM218:22 g @ VM218:22
utils.js:760 Could not display model – WrappedError {stack: “Error: Could not create view↵ at new Error (nat…39d168d24e1b201697c328:1:0), <anonymous>:22:8069)”, message: “Could not create view”, error_stack: Array[4]}(anonymous function) @ utils.js:760 z @ VM218:22 R @ VM218:22 C @ VM218:22T @ VM218:22 g @ VM218:22
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (3 by maintainers)
I had the same problem when working with anaconda (after conda install qgrid). Finally I succeeded to get it working in anaconda as follows:
Same problem here - the problem was resolved by reloading the notebook - not sure what the issue was