5 ms·
Show HN: PyCloud, a Python IDE in the web browser with interactive tutorials
- siong1987 15y agoMy friend worked on this for the Facebook Hackathon over the weekend. We were late for the submission for the competition because a 24 hour hackathon ended up with just 22 hours only. Guess we are just going to show it here. This is a Python IDE with a built in Python compiler. We utilized HTML5 local storage to make it work even without internet connection. You just have to load it once, after that, it should work. We also took the idea from codeacademy and added some Python lessons for people who are interested in Python. Tip: Try to use your iPad/iPhone and add this to your homescreen. Now, you will have a workable Python compiler in your iPad/iPhone. It works without internet connection. Since Apple doesn't allow Python compiler similar app to be submitted to the App Store, guess this is a cool hack to have a Python compiler in your iPad/iPhone. github link: https://github.com/siong1987/pycloud https://github.com/siong1987/pycloud
- p4wnc6 15y agoTraceback (most recent call last): File "", line 2, in ImportError: No module named numpy
- ashrust 15y agoI think this has lots of potential, great work. You might wanna stop or warn when the script takes a while to run, I tried running lesson 2 with range(30) and it crashed the page (Mac/Chrome). Putting a save button on the header might avoid some confusion too.
- fredliu 15y agoNot sure why, but on my ipad2, it crashes the entire browser every time I open it. Did anyone test it on ipad2?
- siong1987 15y agoMy friend did test it on his iPad2. It worked. I currently have no iPad2 with me. Will let you know again once I get my hands on an iPad2.
- biot 15y agoSame crashing result here on iPad 1.
- Tycho 15y agoWhile it loaded in Safari (and before it crashed) i clicked the bookmark icon and added bookmark to home screen. Then when i accessed it from the home screen it worked (after loading up). This was on ipad 1
- candeira 15y agoSame crash here on Chrome 13.0.782.220 m on Windows.
- blparker 15y agoYep, crashed on my iPad2 as well.
- Tycho 15y agoTHere is an app called .PyPad that features a working implementation of Python, although it lacks any IDE features except interactive mode.
- makmanalp 15y agoCool, what is the library support like at this time?
- jonsen 15y agoMake the tutorials really newcomer friendly and you have 100,000 potential users at Stanford online AI class.
- cabalamat 15y agoVery nice! Just one request: use a font other than courier.
- cheez 15y agoPretty cool but I was surprised at the second lesson: > Now, we will show you a little more complicated code. You probably already know what this code does. Let's click Run to see the output. Um, what kind of tutorial assumes the student already knows the material?!!!
- siong1987 15y agoTo give you some context, this app is originally built to be presented to all the hackers at Facebook Hackathon. Sorry about the misleading line up there.
- hogu 15y agosimilar name to http://www.picloud.com/ http://www.picloud.com/
- diN0bot 15y agoadd keyboard shortcut options, eg vim and emacs, and people might use it for real :-)
- johkra 15y agoThis is a cool project. :-) It also doesn't work in Opera, because the emscripten compiled CPython doesn't work with this browser. No problems in latest stable Firefox.
- majika 15y agoOh, wow, look - it's just as if I'm on a Mac! Great!
- ntmartin 15y agoHi, nice app. Just to be a pedant, there is a syntax error in lesson 5. if 2 + 3 = 5: print "OK!" Should be: if 2 + 3 == 5: print "OK!"
- Kwpolska 15y ago> PyCloud also shows error messages when your program has a bug. It's very useful for debugging. For example, click Run to see the output of this script. [Run] > Good job! Now, try to make it run. > > (Hint: == is a comparison operator.)
- DrCatbox 15y agoThat was the lesson, to see that the IDE does not compile errors and has syntax highlighting for it.
- aristidb 15y agoVery cool, but it eats memory like crazy. (Chrome 14, Linux.)
- bobbyi 15y agoIf I try "import math" or "import itertools" I get an ImportError. "import sys" works though.
- artursapek 15y agoEndow this technology with the amount of content that a book would have, like Zed Shaw's Learn Python The Hard Way, and you have a killer product. Though Zed would disagree that typing the code out yourself from scratch is the best way to learn.