mariobuikhuizen / voila-embed

Embed jupyter widgets in existing websites
Other
52 stars 7 forks source link

Does the project be relation to voila version? #20

Open chenxiang567 opened 3 years ago

chenxiang567 commented 3 years ago

Excuse me: I tried to start the project according to the file 'readme.md', but failed. It always like this picture image what caused it ?voila version?

havok2063 commented 3 years ago

Can you check for any errors displayed in your browser developer console, and if any, post them here?

havok2063 commented 3 years ago

I'm using voila==0.2.7. I've had issues with voila==0.2.8. By voila-embed might be installing the latest voila. Maybe try downgrading your voila version to 0.2.7?

chenxiang567 commented 3 years ago

@image I installed voila==0.2.7 too,the detail of bugs show above,but the serve of voila has already started in http://localhost:8000

I'm using voila==0.2.7. I've had issues with voila==0.2.8. By voila-embed might be installing the latest voila. Maybe try downgrading your voila version to 0.2.7?

havok2063 commented 3 years ago

Did you set up the command exactly in the readme conda create -n ve -c conda-forge -y python voila ipyvuetify=1.0.4 bqplot=0.11 nodejs? If so, the ipyvuetify and bqplot packages might be out of date. Try updating to more recent versions, e.g. ipyvuetify==1.6.1 and bqplot==0.12.21.

chenxiang567 commented 3 years ago

image @havok2063 I have tried to update ipyvuetify and bqplot ,but the same bug appeared. I tried to print the result read from voila, the first sentence was "<!DOCTYPE html>",the bug shows "Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0" , Might it be the reason?

mariobuikhuizen commented 3 years ago

If you're on MacOS, Voila runs into "Too many open files" errors. You can prevent this by running ulimit -n 10000 in the same terminal you start Voila in. This is the only way I could reproduce the error after pinning Voila on 0.2.7 as @havok2063 noted.