Git Product home page Git Product logo

brython-in-the-classroom's People

Contributors

bearney74 avatar juancarlospaco avatar kikocorreoso avatar niansa avatar pierrequentel avatar rbarve avatar svisser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

brython-in-the-classroom's Issues

allow app customization

Allow students the ability to customize pyschool.net. (ie, change font size, theme, etc).

better welcome page, better docs.

create better welcome page, that provides links to examples of how to output items to pyconsole, pycanvas, and pydiv.

Create links to brython documentation and python documentation.

Icons on left panel dissapear when local server is executed using python2.7

I'm getting a weird behavior.

When I run the local server using python2.7 all is working fine and I don't get 404 errors but I can't see the icons on the left panel (the panel with code tabs). I tested that on FF and chromium cleaning the cache and running private and incognito windows,... With Python 3.4 all is working fine.

Could someone test that and tell me if you are getting the same?

To test it:

python pyschool_local.py

I labelled that as wontfix because maybe it's related with the python2.7 version I'm using right now (winpython, a portable python for windows). I will try that at home with my linux box later.

add remote storage of programs

create a way for a user to login and store their programs online, so they can access their programs from any computer connected to the internet.

Add FullScreen feature

  • Add FullScreen feature
  • Add simple FullScreen HTML button.
  • Research and Implement window.requestFullScreen();

Focus for new tabs

Hi,
After the user clicks on «new tab», it would be handy to give the focus to the new tab.

any update

Hi, any update of this?
and i run the local.py, it always loading and i can't add new file, but the shell seems work.

share as menu

Another suggestion, would you consider implementing a «Share as» menu?
I don't really understand what «Storage: Google Data Storage» means,
so I may be off-topic.
This would allow to:

email scripts,
create a URL with a hash were the file is displayed read-only as raw text (for download),
create a URL with a hash were the file is displayed in the editor, ready to be executed by brython, the file would be editable in the editor for some tweaks, but the changes would be temporary only and not stored on the server. This is really handy to check a student's work (far superior to download an attachment, open/run the attachment…)

add open url item to menu

create an 'open url' item in the menu so that users can open a python script that maybe located on a web server somewhere.

Problem getting morphed binary stars code to work

This program below is an attempt to implement the one here : http://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/BinaryStar-VPython/edit
but it doesnt work.. This was on Chrome beta 42.0 on Ubuntu 14.04
Notes:
(a) I replaced the while True with the recursive version as in Pyschool's bounce
(a) There seem to be some associative rule issues : the expression
F = G * giant.mass * dwarf.mass * norm(r) / mag2(r)
doesnt work even with r.norm() and r.mag2() so that I had to use :
coeff = G * giant.mass * dwarf.mass/r.mag2()
F = r.norm() * coeff
to make it work..
(b) Initially I had the make_trail params to the spheres left as in the original vPython. But the program seemed to be executing with canvas/scene completely blank. Since I recall reading somewhere that make_trail had issues in brython-glow, I removed the make_trail params but still the canvas/scene is blank..

from glow import *

glow('pydiv')
scene = canvas()

scene.forward = vec(0,-.3,-1).to_glowscript()

G = 6.7e-11

giant = sphere(pos=vec(-1e11,0,0), radius=2e10, color=color.red)
giant.mass = 2e30
giant.p = vec(0, 0, -1e4) * giant.mass

dwarf = sphere(pos=vec(1.5e11,0,0), radius=1e10, color=color.yellow)
dwarf.mass = 1e30
dwarf.p = vec(0,0,0)-giant.p
r = dwarf.pos - giant.pos
coeff = G * giant.mass * dwarf.mass/r.mag2()
q = r.norm()*coeff
print("q",q)

dt = 1e5
def move():
r = dwarf.pos - giant.pos
#F = G * giant.mass * dwarf.mass * norm(r) / mag2(r)
coeff = G * giant.mass * dwarf.mass/r.mag2()
F = r.norm() * coeff
giant.p = giant.p + F_dt
dwarf.p = dwarf.p - F_dt
giant.pos = giant.pos + (giant.p/giant.mass) * dt
dwarf.pos = dwarf.pos + (dwarf.p/dwarf.mass) * dt

rate(200,move)

print("start exec")
move()

Use python2, python3 or python2/3 for the 'real' python scripts

There are some python scripts that are only compatible with Python2 (e.g., libs/GoogleDataStore.py). It is easy to fix that now and I can be in charge of that if necessary but I don't know if it is only Python2 compatible because some external libs are only python2 compatible.

There should be a small guide style to help in the development..

browser should remember authentication

when closing a pyschool tab, and then opening a new one, a user must type in their userid/password again. Should try to use a cookie to store token so user doesn't have to type userid/password during a browser session.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.