Do you have an account on Dropbox? Get Console's Script Manager allows you to upload results directly to Dropbox which might be a slicker alternative to communicating with Pythonista than the iOS clipboard. Either Dropbox or the clipboard could be made to work.

Can you provide a URL to the Data Explorer product? Is it the iOS app at the URLs below? If not, what machine is it running on? There is confusion here because IBM, Google, Microsoft, Informatica, etc. all have different products that they call Data Explorer.

If Data Explorer is an iOS app, you can do what you want in Editorial, because it has a function console.quicklook which displays text and lets you 'open in' another app. Pythonista lacks console.quicklook. I made an editorial workflow for this:

I do have an account on DropBox, so that might be a solution. The reason I am hesitant is that it isn't officially supported by IT.

You correctly found the data analytics software, it is the first link you provided. It is an iOS app.

Okay, so console.quicklook pointing to a txt file could let me open in the iOS analytics app.

I wouldn't have to transfer the data if Pythonista had numpy (one iOS developer has managed this, the pynum app) and matplotlib (no one has done this), but that is a lot to ask. I would say though, that Pythonista has a beautiful interface, and if it could implement those modules to allow scientific data analysis, a lot of people would be happy (and as an in-app purchase, you could go away w/ lots of $ to support even more development :) ).

ccc, thank you! It works perfectly, and was very useful for me to go through as I start Python.

I wanted to also note for anyone that happens to come across this discussion through a search that another App I have found useful for data plotting that works better than Data Explorer currently is 'Graphical' by Vernier. If you use ccc's code to generate a csv instead of a text file, you can open in Vernier and plot it quite easily and select regions of the plot to do a lot of analysis. (now I just have to play with exactly how Vernier wants the data formatted to convert my serial port data to something workable).

Also the Graphical app has some fun applications where you can use the built in iPad sensors to record acceleration for example. I recorded my flight takeoff discretely to see how fast the plane was accelerating. :)

In my efforts, I ran across the following problem: When I use <code>console.quicklook</code> to preview my generated csv file, the 'open in' button does not function for any apps except for the iOS mail client.

<b>Observations:</b> All the icons appear, but when I touch them, it registers the touch and the menu goes away, but nothing happens (except for the mail client, which properly sends the generated csv as an attachment. The attachment can then be opened in the apps that were listed from safari, but this is a round about way).

The first two lines of the CSV file it is working off of are here:

<b>20140121_data.csv</b>

<code>
11-23-13 06:26:18 622.80

11-23-13 06:27:18 623.24</code>

...

My code (forgive me for this, been working with python for a week :) ) is just attempting to find the time in seconds from the first event and create a new csv file that is formatted differently than the one listed above.

reader = csv.reader(csvfile,delimiter='\t')
new_date_list = []
new_val_list = []
for row in reader:
#create new lists that will be turned into a csv later
new_date_list.append(row[0])
new_val_list.append(row[1])

This code results in a csv file that can be opened only in the mail client, which I then email to myself, open in safari and then open in 'Graphical' by vernier (for example, many other apps open csv files.)

In this example, Graphical by Vernier (and every other app that supports csv files) shows up as an 'open in' option but when touched does not register any action.

Sending email directly with Python/Pythonista would require that you also keep the SMTP server account information within Pythonista. You can keep the password in the keychain, but it will still be only within Pythonista.

If you just want to mail a single file to somebody from within Pythonista, use console.open_in() and open it in the mail app. You would have to enter the recipient and mail subject/text in the mail app, though.

For Python scripts you can do the "Open in..." manually via the "Export..." entry in the actions menu. For other file types, you can use the FileNavigator script. I have this always in my action menu. To export any file, I run it from the action menu, navigate to the file, tap the info button and then choose "Open in External App" from the "Actions" section of the file details dialog and open it in the mail app or dropbox.

Update: Sorry, should have verified what I was telling. Actually, "Open in External App..." doesn't give you the mail app as a choice, but if you open a file with Quickview and then tap the "Open in..." button, you get the mail app as an option.