I try to connect yg google colab to anvil as server, but when I try, I got this, I’ve tried to click RESTRAT RUNTIME and reconnect but nothing happen
please tell me what should I do
share a copy of your app
you need the line
anvil.server.wait_forever()
If you want your colab to stay running while anvil has access to it.
ya, but before it I mush put this code to connect anvil with google collab
!pip install anvil-uplink
import anvil.server
anvil.server.connect("code server")
and when I run this code I got that error
I don’t know anything about colab, but that screenshot appears to show a successful connection to Anvil.
If you run this exact code (nothing added except your uplink key) :
!pip install anvil-uplink
import anvil.server
anvil.server.connect("<your-uplink-key>")
anvil.server.wait_forever()
can you confirm what you get as output?
Reading your initial question again, are you concerned about the [argparse]
warning?
I also am not an avid user of google colab (or notebooks in general), but you could try starting over and running pip install argparse==1.4.0
in it’s own cell, and if you get that warning again, do your runtime restart and then pip install anvil-uplink after it.
When pip finds the version of argparse it is looking for has already been installed it should just skip it and continue.