Page 2 sur 8

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 03 Sep 2014, 16:46
de Adriweb
Thanks Vogtinator :D

In the attachment you provided, do you think it is stable enough to be the main download (I'd update the archive, then) ?
(The current archive download si the version without native code emission, just the first one I did my timings with)

Also, an idea : lots of people won't know that it's possible to modify the file exts association file - Could micropython automatically append the correct line to associate itself with .py files if it's not already the case (or if the file doesn't exist at all) ?

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 03 Sep 2014, 17:11
de Vogtinator
It's not stable at all, some testing would be good, to find out why it crashes sometimes.

Also, an idea : lots of people won't know that it's possible to modify the file exts association file - Could micropython automatically append the correct line to associate itself with .py files if it's not already the case (or if the file doesn't exist at all)?

That's already the case, even with the version you benchmarked :P

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 03 Sep 2014, 17:17
de Adriweb
Oh, I must have done something wrong when I tested, then, ok :D

And ok, I'll just mention the dev. version but not update the main download :)
(Edit : done - see description. Edit2 : also updated the news about that)

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 03 Sep 2014, 21:00
de Hayleia
Excellent projet et excellente news :D

Je signale juste deux fautes que j'ai trouvées en passant ;)
Lionel Debroux a écrit:
Compte tenu de tout ceci, il est assez naturel de vouloir [essayer de] porter d’autres langages de script comme le Javascript, Perl, PHP, Python, Ruby… sur calculatrice - d'une part parce que l'on peut le faire, et d'autre part car une partie des utilisateurs de calculatrices qui deviendront développeurs professionnels un jour peuvent avoir envie d'appendre des langages populaires en premier :)
...
Ansi, nous (admins de TI-Planet) avons initié le projet de port d'un interpréteur Python pour la TI-Nspire. Le Python est clairement le choix le plus populaire parmi les 5 listés plus haut, et il est devenu le langage le plus populaire à des fins éducatifs d'après un récent sondage :
Therefore, we (TI-Planet staff) sparked the port of some Python flavor to the Nspire. Python is clearly the most popular choice among the 5 ones listed above, and it has become the most popular language for learning purposes, according to a recent survey:
http://www.pcworld.com/article/2451880/ ... guage.html .

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 03 Sep 2014, 21:05
de technolapin
Bon, tout ça c'est bien beau, mais on fait comment pour faire des scripts de plus d'une ligne avec cette console? :troll:

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 03 Sep 2014, 21:06
de Adriweb
Tu peux aller à la ligne sans problème :)

Image

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 03 Sep 2014, 21:28
de Bisam
Thank you for adding these missing characters, Vogtinator !
You forgot to tell about ! which can be added too by pressing :nssh: :nspp:

Now (or maybe I did something wrong before that...) scripts execute and wait for a key pressed at the end so that you can see something !
Students can create their scripts oncalc with nTxt and execute them with MicroPython... that's just perfect.

Maybe 2 features could be added :
- an easy "quit" by pressing a key (e.g. "ESC" or "ON")
- ability of executing a chosen file while being in Micropython (using a menu, like nTxt does, for example)
That would the BEST !

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 04 Sep 2014, 05:59
de technolapin
Tu peux aller à la ligne sans problème :)

Quelle touche? Et surtout, il faut retaper le programme quand on veux l’exécuter?!

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 04 Sep 2014, 06:52
de Levak
technolapin a écrit:
Tu peux aller à la ligne sans problème :)

Quelle touche?

C'est le même comportement que sur PC si je ne m'abuse :
- L'ouverture d'un scope se fait par les ( et :
- Une ligne vide correspond à la fermeture d'un scope IIRC.

Tant que t'es dans un scope, tu n'exécutes pas le programme et le readline attends tes entrées.

Et surtout, il faut retaper le programme quand on veux l’exécuter?!

Je suppose que oui. Sinon, comme bisam l'a dit : nTxt est ton ami.

Re: Le Python et la Nspire enfin réunis grâce à "Micro Pytho

Message non luPosté: 04 Sep 2014, 12:16
de parisse
How can we leave the interpreter? Enter on a void line does not work with the readline-enabled version.