简体   繁体   中英

Chrome browser: Cannot launch python code visualizer

Pythontutor , a code Visualizer is integrated within CloudCoder (an open source web-based programming exercise system). When I click on the Visualize button (to the left of the green bar in the screenshot below), only a blank window pops up. The visualizer doesn't show up with the code under question.

CloudCoder

This problem seems specific to all browsers (Chrome, Firefox and Opera) running on Windows 7 on a PC (I don't know if it works okay on Windows 8).

Python导师

To re-create the problem, click on this demo problem available at this URL (userid: guest password: password ). Any ideas on how to get the Visualizer to work within the browser?

It's usually a good idea to check the dev console when anything goes wrong:

不安全的内容错误

The message above is self-explanatory, but unfortunately pythontutor.com does not seem to support HTTPS (it responds, but with a "Forbidden" error page).
You should contact them and kindly ask them to upgrade, if you care about security.
In the mean time, see this question & answer for how to work around security:
How to allow http content within an iframe on a https site

(The problem isn't specific to Windows btw, I'm running OS X 10.10.5 with Chrome 48 dev.)


An entirely different approach in this particular case would be to simply get the PythonTutor source code and host it yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM