So far I have run the notebooks on Google Collab as here free GPU service is provided. Now in notebook 2 at ‘Turning Your Notebook into a Real App’ Jeremy explains how to apply Voila by replacing the word ’ notebook’ to ’ voila’ in the webbrowser url
According to some topics I found that Voila is not available for google Collab, is this correct?
So instead of via Google Collab I run Voila via Jupyter Notebook. I tried to upload two example scripts by putting them on the local jupyter notebook folder and then push them to github, as suggested this topic .
install and run everything locally on my machine (worked without a problem)
upload the code to GitHub
run it on binder
C:\Users\jorri\fastbook\clean\Github
But I run into an error when I try to upload these .ipynb files to github via the windows terminal.
There seems to be a way to run Voila on Google Colab using ngork, but it requires some setup and I haven’t tried it [1].
This seems like an issue with Git setup. If you are new to this (my experience is limited as well), I would suggest create a new project on Github and try uploading your project files directly using GitHub web UI. Once uploaded, clone the project back to local machine (files that are >25MB still need to be uploaded via command line [2]).
I see few issues. Your project folder should include:
A pickle file (export.pkl file - the model that you have saved to disk). That’s why your notebook is throwing an error. So upload that too.
A requirements.txt file to help binder build the container image. You can refer to it here in this repository. Take the file and update them with your versions of the library.
In binder, you should be pointing to the bear_classifier.ipynb file in the URL to open field.
Try these and let’s see if it works. If it doesn’t keep posting the error messages. These are small issues but you can do it
Thank you so much for the help. I did all your suggested changes so now my repository looks similar the example repository. I only created an animal detector instead of a bear detector but its basically the same pickle file (and I assume also the same requirements.txt) as shown in the example. I still get the same error when trying out different URLS
If I try using the url from the github page? → /blob/master/animal_classifier.ipynb