-
mikael
Wondering what is the point of this kind of spam that does not even have a link in it?
-
mikael
@tomomo, I suggest you check your understanding of which sshtunnel address is which. Is your jump server address really 123.123.123.123?
load_url
should use 127.0.0.1, i.e. the local endpoint of the tunnel - you can use thelocal_bind_address
to specify the port.Also, would recommend the
with ... as tunnel:
format to manage the opening and closing of the tunnel.(ScrollView is not needed, WebView can scroll on its own.)
-
mikael
@sodoku, yes, but it seems a bit more involved. Check this thread where @cvp does all kinds of magic.
-
mikael
@tomomo, check out this convenient-looking sshtunnel module.
It is Python-only, installed cleanly and did not throw any errors before not connecting because I do not have a convenient SSH endpoint around.
-
mikael
@shinyformica, ok, thanks.
There is the option of turning retain_global off, if you want to take over the responsibility of making sure that Gestures sticks around. Or did you have some clever way of not needing to worry about that?
Also, a PR or some lines of code for the handler function would be welcome.
-
mikael
@tomomo, trying to understand what you are trying to do.
Creating an ssh tunnel, then opening a localhost page in WebView?
-
mikael
@jadenfrancis, if the Pythonista inline help is not enough, googling ”python whatever” always gives me an appropriate stackoverflow answer. :-) Failing that, this forum is beginner friendly.
-
mikael
@shinyformica, @JonB, just took another look at Gestures, which uses the mind-boggling? combo of
retain_global
andweakref
s, but seems to work ok for most people. Is there a clear advantage to the pyobject approach that would recommend refactoring Gestures? -
mikael
@shinyformica, I have just stored a direct reference to the python object, or earlier also maintained a lookup dict for this purpose. Then taking some care to clean up at the end.
-
mikael
Or still consider multipeer as it will reconnect and deliver the messages even if the IP changes.