[Chicago] Python in the browser IDE
Carl Karsten
carl at personnelware.com
Sat Mar 29 17:31:19 CET 2014
http://www.codeskulptor.org/#user29_RMncsWVAGWNhB0f_0.py
I see your code, but when I run it:
Line 1: ImportError: No module named urllib
On Sat, Mar 29, 2014 at 9:55 AM, Randy Baxley <randy7771026 at gmail.com>wrote:
> First I want to thank the three of you for responding. I will likely try
> poking around the links. I took the Rice course so the idea I have right
> now in mind is based on using Codeskulptor but wishing it had somehow had
> at least the libraries of Anaconda that Brian R likes and would somehow
> switch from GUI display to web display without too much effort.
>
> http://www.codeskulptor.org/#user29_RMncsWVAGWNhB0f_0.py
>
> Saves for me but I am not sure if that is because I took the class or not.
>
> My final project broke but I sort of fixed it so folks can play with it a
> bit if they like. control with arrows and space bar.
>
> I am wanting to do the same thing where it would just display a GUI that
> you could add your 10 favorite bus stops on then one that finds the ten
> closest bus stops to wherever you are and gives you directions to them and
> the direction buses stopping there are headed.
>
> No sandboxes, please.
>
> As I have studied Python and that has sprung out into observing and
> participating in open hardware repair and recycling, Open government, open
> data, open OS and others and of course all the new free MOOCS I have wished
> the groups, universities and corporations involved could find a common
> direction instead of competing. That is after all why the net has become
> so successful.
>
>
>
>
>
>
> On Fri, Mar 28, 2014 at 4:27 PM, Yarko Tymciurak <yarkot1 at gmail.com>wrote:
>
>> Randy -
>>
>> Check out interactivepython.org (try the demonstration);
>>
>> They use skulpt.org (http://runestoneinteractive.org/about.html), which
>> also is combined with codemirror to produce http://www.codeskulptor.org/ - the latter being the kingpin of
>> https://www.coursera.org/course/interactivepython
>>
>> (you can search github for codeskulptor to find games, presumably from
>> the interactivepython course)
>>
>> If you dig further, you can find out about implementation of skulpt, how
>> it came to be, its limitations, etc.
>> There are some pretty interesting articles on this.
>>
>> And, of course, if you have not used ipython notebooks, then definitely -
>> a big way to check those out is (for example) with the
>> https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition book
>> - the link is to ipython notebooks to go with the book. Awesomeness.
>>
>> Finally, if you just want to scrape, scrape, scrape - and get your sea
>> legs w/ lxml (i.e. stimulated by my talk Wednesday), I'm in process of
>> pylint cleanup (not sure how much left - not too bad; but I got sidelined
>> by some edx) and will get it up on github soon (this weekend?).
>>
>> - Yarko
>>
>>
>>
>> On Fri, Mar 28, 2014 at 3:54 PM, Sunah Suh <chipy at sunahsuh.com> wrote:
>>
>>> Sounds like IPython Notebook might do exactly what you need:
>>> http://ipython.org/notebook.html
>>>
>>> The link above is for the actual package, but there are a number of
>>> hosted IPython Notebook instances out there, including Wakari:
>>> https://www.wakari.io/
>>>
>>> The free version of Wakari is.. slow, and so you may want to spring for
>>> the paid version if you find it useful. Otherwise, you can try to host your
>>> own instance on the free AWS tier, instructions for which are here:
>>> https://gist.github.com/iamatypeofwalrus/5183133
>>>
>>> --
>>> Sunah Suh
>>> Software Engineer @ Etsy
>>> Full-Stack Web Developer, Pythonista, Jill-of-all-trades
>>> Intermittent Winner in Life
>>> Website: sunahsuh.com | GChat: sunah at sunahsuh.com
>>> Check my current email load: http://courteous.ly/d7mWb4
>>>
>>>
>>>
>>> On Fri, Mar 28, 2014 at 3:36 PM, Randy Baxley <randy7771026 at gmail.com>wrote:
>>>
>>>> Having a lot of fun writing little programs like:
>>>>
>>>> x = 5
>>>> print(1 < x < 10)
>>>> print(10 < x < 20 )
>>>> print(x < 10 < x*10 < 100)
>>>> print(10 > x <= 9)
>>>> print(5 == x > 4)
>>>> import urllib
>>>>
>>>> from xml.etree.ElementTree import parse
>>>>
>>>>
>>>> def monitor():
>>>>
>>>> p = urllib.urlopen('
>>>> http://chicago.transitapi.com/bustime/map/getStopPredictions.jsp?stop=5623&route=80
>>>> ')
>>>> pdoc = parse(p)
>>>> for pre in pdoc.findall('pre'):
>>>> vid = pre.findtext('v')
>>>> eta = pre.findtext('pt')
>>>> print 'Bus number ', vid, 'will arrive in ', eta
>>>> print '---'
>>>>
>>>>
>>>> print '_'*10
>>>> import time
>>>> count = 0
>>>> while count < 60 :
>>>> monitor()
>>>> count = count + 1
>>>> time.sleep(60)
>>>>
>>>> Someday I may also learn a framework but for now I am wondering if
>>>> there is a browser ide that I could just and paste to then share the link
>>>> which I could also run from safari on my phone?
>>>>
>>>> _______________________________________________
>>>> Chicago mailing list
>>>> Chicago at python.org
>>>> https://mail.python.org/mailman/listinfo/chicago
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Chicago mailing list
>>> Chicago at python.org
>>> https://mail.python.org/mailman/listinfo/chicago
>>>
>>>
>>
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> https://mail.python.org/mailman/listinfo/chicago
>>
>>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
>
--
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20140329/e03e3298/attachment.html>
More information about the Chicago
mailing list