from EPD install:
As the last step, you should edit your .bashrc or prepend
the EPD install path:
/software/python/EPD/7.0/bin
Thank you for installing EPD!
$ export PATH=/software/python/EPD/7.0/bin:$PATH
| # '/Users/aamn/Projects/VO_Projects/Python/Test_vaods9' | |
| import os | |
| import vao_intercom | |
| ds9c = vao_intercom.ds9Com() | |
| # find out where ds9 thinks it is | |
| ds9c.get('cd') |
| # src: https://gist.github.com/906716/82e170c4952a75fde3fdc1e5c5f008979e1a8364 | |
| import sampy | |
| import urlparse | |
| mtype_lu = {} | |
| mtype_lu['votable'] = {'mtype':'table.load.votable', | |
| 'params':['name','url','table-id']} | |
| mtype_lu['fits_table'] = {'mtype':'table.fits.votable' , | |
| 'params':['name','url','table-id']} |
| import sampy | |
| import urlparse | |
| import os | |
| def ds9echo(response): | |
| print response | |
| class Client(sampy.SAMPIntegratedClient): | |
| def __init__(self, |
| from sampy import * | |
| import time | |
| import urllib | |
| myhub=SAMPHubProxy() | |
| myhub.connect() | |
| client=SAMPClient(myhub) |
| from sampy import * | |
| import time | |
| import urllib | |
| myhub = SAMPHubProxy() | |
| myhub.connect() | |
| client = SAMPClient(myhub) |
| Please note that this gist applies to EPD version 7.0 and 7.1. EPD 7.1 includes ETS | |
| but not completely on OSX x64. Furthermore a patch has been submitted for inclusion | |
| in virtualenv that should resolve the virtualenv issue. | |
| The notes below were compiled for 7.0 and will need to be replaced with corresponding | |
| 7.1 paths. | |
| https://github.com/satra/virtualenv/tree/fix/EPDpatch |
from EPD install:
As the last step, you should edit your .bashrc or prepend
the EPD install path:
/software/python/EPD/7.0/bin
Thank you for installing EPD!
$ export PATH=/software/python/EPD/7.0/bin:$PATH
from EPD install:
As the last step, you should edit your .bashrc or prepend
the EPD install path:
/software/python/EPD/7.0/bin
Thank you for installing EPD!
$ export PATH=/software/python/EPD/7.0/bin:$PATH
| #See: http://daringfireball.net/2010/07/improved_regex_for_matching_urls | |
| import re, urllib | |
| GRUBER_URLINTEXT_PAT = re.compile(ur'(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))') | |
| for line in urllib.urlopen("http://daringfireball.net/misc/2010/07/url-matching-regex-test-data.text"): | |
| print [ mgroups[0] for mgroups in GRUBER_URLINTEXT_PAT.findall(line) ] |