Dear all,
it would be great to wikify this post and create a complete guide regarding deploying the app with Binders, there are different comments and suggestions around. This can help other users in the future.
Try your files out on mybinder before doing the voila option. For example, you can just include your repo, but leave âPath to a notebook fileâ blank. This lets you debug on the mybinder server similar to your local jupyter notebook or colab
Thanks for your tips on using Binder! Iâve never used Git Large File Storage, but it looks really helpful for large model files.
One thing that got me was making sure I clicked âURLâ instead of the default âFileâ in the dropdown when entering /voila/render/NOTEBOOK_NAME.ipynb.
Also, a good way to debug the notebook is to replace /voila/render with /notebooks in the URL to run the Jupyter notebook.
but to see the voila output we need to:
click on launch binder --> click on the jupyter notebook --> click on voila
When I deployed the repository in mybinder I used:
GitHub: https://github.com/enricodata/emotion-faces/
Path to a notebook file (optional): /voila/render/emotion_classifier.ipynb
When you are entering the input to the text box labeled Path to a notebook file (optional), you want to change the dropdown from File to URL. The label above the box will change to URL to open (optional). After you click launch, you will be redirected to a deployment page with urlPath instead of filePath in the URL.
Thanks for the comment. It happened to me too, but I forgot to add it in the steps. @Albertotono Hey Alberto, I think you might wanna add a step for Christianâs comment on changing File to URL. I edited my binder tips post (in lessons 2) to reflect the addition.
Thanks a lot for your help, I donât know why it still not working with me. Itâs my first time to use widgets, and itâs frustrating! I got another error because on-click is not defined. Although I have this line in my code:
from ipywidgets import widgets
I have not use observe method before. If you update btn_upload.observe(on_click, names=['data']) to btn_upload.on_click(on_click_classify), it should work.
You pass a function on_click_classify that will be called when you click on the button.
I went through this page and it didnât work, maybe itâs Google colab problem, did it work with paperspace? I donât want to spend doing all the project again and donât work
thanks for these steps @Albertotono - I followed the steps here, however when trying to run the notebook on binder (step4),I seem to get an error that states "canât get attribute. â_ConstantFuncâ on <module âfastai2.learnerâ from â/srv/conda/envs/notebook/lib/python3.7/site-packages/fastai2/learner.pyâ>