omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. WayneJang

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    WayneJang

    @WayneJang

    0
    Reputation
    706
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    WayneJang Unfollow Follow

    Latest posts made by WayneJang

    • RE: Regarding the forced termination problem with matplotlib.pyplot

      I currently use App version.
      I followed your advice, and it worked well!

      posted in Pythonista
      WayneJang
      WayneJang
    • Regarding the forced termination problem with matplotlib.pyplot

      I have used Pythonista really well, and used it to solve interesting mathematical and statistical challenging questions.
      But there is one problem related with matplotlib.pyplot - my Pythonista app running on my iPad Air 2 encounters forced terminations whenever I type "import matplotlib.pyplot as plt"

      I tried both Python 2.7 and 3.5, and both faced same problem.
      Is there any other way that I could fix this bug?

      Thanks in advance
      Wayne Wonbong Jang

      posted in Pythonista
      WayneJang
      WayneJang
    • RE: Related with Non-ASCII error

      I followed the above suggestions - and I deleted all 'white spaces' below my code and it worked fine. Maybe, there were some hidden ASCII codes. Thanks all for great advices.

      posted in Pythonista
      WayneJang
      WayneJang
    • Related with Non-ASCII error

      I took a Coursera Python lecture by Dr. Chuck, and I would like to run his code on my Pythonista - but it is not working, which works perferctly on my laptop. The special feature of this code is to use Google API - and I got 'SystemError:invalid syntax' without any further explanation. My code is below, and I really appreciate any advice on this matter in advance. Also, thanks for dgelessus with helpful comment that I am able to use 'code block' that enables me to upload the post with the indentation.

      
      import urllib
      import json
      
      serviceurl = 'http://maps.googleapis.com/maps/api/geocode/json?'
      
      while True:
      	address = raw_input('Enter location : ')
      	if len(address) < 1: break
      	url = serviceurl + urllib.urlencode({'sensor':'false','address':address})
      	print 'Retrieving ', url
      	uh = urllib.urlopen(url)
      	data = uh.read()
      	print 'Retrieved ', len(data), 'characters'
      	try: js = json.loads(str(data))
      	except: js=None
      	if 'status' not in js or js['status'] != 'OK':
      		print '====Failure to Retrieve===='
      		print data
      		continue
      	lat = js["results"][0]["geometry"]["location"]["lat"]
      	lng = js["results"][0]["geometry"]["location"]["lng"]
      	print 'lat', lat, 'lng', lng
      	location = js["results"][0]["formatted_address"]
      	print location
      
      
      
      posted in Pythonista
      WayneJang
      WayneJang