Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
How do I load a module from somewhere else? (Eg. dicom )
-
How do I get a module into pythonista, so I can import it?
I am actually wanting the medical images package dicom, but I'd like to know how to do it generaly.
-
@fustbariclation , if you follow the instructions here and install StaSh. Then StaSh has a pip cmd you can use to install dicom
-
For packages hosted on pypy, you can install stash, then use the pip command
pip install pydicom
for pure python packages (which do not have C dependencies), this works maybe 75% of the time. in some cases, you may need to use pip download, then manually un tar or unzip the file, and copy the main package folder into site-packages.
For things on github, you can use git clone, from within stash. Or you can use wget with the github archive url, then un tar or unzip again with stash.
For individual files, I recommend
https://gist.github.com/jsbain/fcb3f42932dde9b0ff6c122893d1b230
which you set as an application extension script, so you would navigate to the file in safari, then use the share menu to run the savefile script, which will place the file in your Documents folder.