-
Kenbo01
Has anyone had any success in accessing a MS SQLserver database on same network as IPad?
I've attempted to use pypyodbc but I think I also need FreeTDS and potentially another driver as well.
Any ideas or suggestions would be greatly appreciated.
-
Kenbo01
Stash is here:
https://github.com/ywangd/stash
To install updated version of requests type this in stash command line:
pip install requests
And similarly for Dropbox
pip install dropbox
If they claim to already be installed, try:
pip update requests
pip update dropboxNote you will need to kill Pythonista and restart for it to pick up the updated libraries
-
Kenbo01
Hi,
The DropboxSetup.py can also be found in the synchronator Github repo. The quickest way to get it may simply be to copy and paste its raw content into an empty script in Pythonista.
Note I found that I also needed to use stash/pip to install a new and updated version of requests. The default version installed by Pythonista has a bug that Dropbox hits at runtime.
-
Kenbo01
Very strange. Even a hard reset wouldn't resolve the issue.
However, when I changed the port to a new one. It reloaded all the files and worked!
-
Kenbo01
Hi,
I'm using
bottle
to serve web pages that load javascript libraries, html and css.It works fine most of the time. However, when I make modifications to the pages it regularly fails to reload the files.
Sometimes the caching appears to persist even when I kill Pythonista and restart.
When starting
bottle
I am doing so with:bottle.TEMPLATES.clear() run (host='localhost', port=8088, debug=True, quiet=False)
The debug code clearly shows that it is not reloading the files that I have changed.
I've tried serving the files with both
static
andtemplate
but it makes no difference.I've executed the same code on my PC and it clearly picks up the modified files.
Is there a way I can stop
bottle
doing any sort of caching? Or is there some kind of Pythonista bug here?My suspicion is that I have a old process of bottle running that refuses to die. I will try a hard reset of my Ipad.
I'm almost at the point of installing my own version of
bottle
and hacking the code to stop it from caching.All help greatly appreciated!
Thanks
-
Kenbo01
I had this issue last night while trying to get Jinja2 working with Pythonista. I succeeded by stubbing out the function in dist tools and getting it to drop out to the default platform.
So I got Jinja2, unidecode, slugify and nvd3 working.
-
Kenbo01
I often find Pythonista crashes when I copy text from a web page directly into the editor. Is this a well known bug or should I provide examples?
-
Kenbo01
No, turtle relies on Tkinter which isn't viable for ios.
See here:
https://omz-forums.appspot.com/pythonista/post/5505478058573824But, some alternatives here:
-
Kenbo01
xlwt seems to work.
Presumably xlrd does as well, but I haven't checked yet.
-
Kenbo01
My applications need to display a lot of tabular data (metrics, financial info etc.). I currently use bottle and webbrowser to achieve this with HTML and CSS (Python/Pythonista backend).
If I wanted to display using the new <code>ui</code>, what would be considered "best practice" for cleanly displaying Multi-columnar data in Pythonista?
I note that TableView is for single columns and that there is no CollectionView yet. Would a WebView be the logical approach?