I have successfully published an app to the shinyapps.io site and it utilizes reticulate to run saved models (made with keras) in python. Interestingly, when I go to the shinyapps.io site that hosts this app, it sometimes says Disconnected from server and isn't able to reload. When I look at the logs when that happens it says keras not found. However, other times it works just fine and the logs show that everything is working properly. As far as I can tell I'm not doing anything differently in these situations.
I will be sending this to others very soon (turning it in) and would like for it to be working reliably. logs.pdf (44.8 KB)
I am uploading the logs -- it includes an example of both when it has worked and when it hasn't. The error Warning: Error in py_run_file_impl: ImportError: No module named kerasis indicative of when it doesn't work, and when you see I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2900060000 it is running properly. I don't have much experience debugging from logs, and am not sure what to make of what I'm seeing.logs.pdf (44.8 KB)
Yes, but not through the shinyapps.io server. I am now running my apps on shinyserver, hosted on AWS.
Basically, I realized I needed control of the service to install the python environment that reticulate needs. The installation and usage of the python environment canNOT happen in the same session, therefor shinyapps.io was not going to work consistently.