Author Topic: pyWrite - python script editor  (Read 48054 times)

0 Members and 3 Guests are viewing this topic.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: pyWrite - python script editor
« Reply #30 on: November 09, 2014, 09:33:22 am »
Sure but don't you think it'd be weird if I made something for you then applied a license that prohibited you from using it? :P
I'll probably create the sprite tonight.
I'm not a nerd but I pretend:

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: pyWrite - python script editor
« Reply #31 on: November 09, 2014, 10:06:33 am »
Quote
Sure but don't you think it'd be weird if I made something for you then applied a license that prohibited you from using it? :P
License: "Every binary containing this sprite or parts of it must only be used by aeTIos." ;-) Yes, that would be weird, although legal O.o
Quote
I'll probably create the sprite tonight.
Don't try to make a good looking cursor, otherwise it won't fit to the rest :P
(Could you design some other things as well, like Dialog boxes, buttons and text input fields?)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: pyWrite - python script editor
« Reply #32 on: November 09, 2014, 12:11:21 pm »
Quote
Sure but don't you think it'd be weird if I made something for you then applied a license that prohibited you from using it? :P
License: "Every binary containing this sprite or parts of it must only be used by aeTIos." ;-) Yes, that would be weird, although legal O.o
Quote
I'll probably create the sprite tonight.
Don't try to make a good looking cursor, otherwise it won't fit to the rest :P
(Could you design some other things as well, like Dialog boxes, buttons and text input fields?)
Sure, though I already like the way those are right now :)
I'm not a nerd but I pretend:

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: pyWrite - python script editor
« Reply #33 on: December 06, 2014, 01:47:16 pm »
Bump.

Lepzulnag released "NoteWriter 2.0" (beta for now) which has python-related features :)



Main features
Quote
- Highlight syntax for .py files
- You can open multiple files on the same work space
- Sweet grahisms
- Text selection, copy and paste
- Fast, and no limit to file size
- Possibility to execute .py scripts directly from Notewriter *.

* He says it's buggy for now as MicroPython exists right after launching it, apparently.

I suggested on the announcement topic that he and Vogtinator should combine the most interesting features from both in order to create the perfect editor - so far, both have unique features, it would be great to merge them ! :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: pyWrite - python script editor
« Reply #34 on: December 06, 2014, 02:16:52 pm »
Quote
Lepzulnag released "NoteWriter 2.0" (beta for now) which has python-related features :)
(...)

I suggested on the announcement topic that he and Vogtinator should combine the most interesting features from both in order to create the perfect editor - so far, both have unique features, it would be great to merge them ! :)
Yeah, although it's probably not easy to decide which codebase to keep, especially since his project is not open source which is a terrible decision.
Anyway, if and when aeTIos draws some nice graphics, pyWrite is definitely equal - if not better, the mouse is one of the most useful features - to NoteWriter.
I'm also working on getting FreeType to render the glyphs, but it probably to slow.

Quote
* He says it's buggy for now as MicroPython exists right after launching it, apparently.
Works for me, just the direct way with nl_exec without workarounds..

Offline Spartan

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
  • Spartan. Kicking ass since 480BC.
    • View Profile
Re: pyWrite - python script editor
« Reply #35 on: December 06, 2014, 03:08:21 pm »
Hello everyone,
Does anybody have any idea if there is a possibility of adding the SymPy Python library to micropython? it would be very useful for advanced python programming and i use it alot on desktop, so im wondering if there is any way...
http://www.sympy.org/en/index.html
Take a look and thanks Vogtinator :P its great.
 

Add me on steam :

My Steam Profile (from SteamDB)

  • Worth: £1117 (£294 with sales)
  • Games owned: 106
  • Games not played: 69 (65%)
  • Hours on record: 770.5h
Chris

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: pyWrite - python script editor
« Reply #36 on: December 06, 2014, 03:10:02 pm »
Quote
I suggested on the announcement topic that he and Vogtinator should combine the most interesting features from both in order to create the perfect editor - so far, both have unique features, it would be great to merge them ! :)
Yeah, although it's probably not easy to decide which codebase to keep, especially since his project is not open source which is a terrible decision.
Yeah, but I'm pretty sure he'll open-source it. At least I don't see why he wouldn't. Maybe it's closed just for the beta time ?

Anyway, if and when aeTIos draws some nice graphics, pyWrite is definitely equal - if not better, the mouse is one of the most useful features - to NoteWriter.
I'm also working on getting FreeType to render the glyphs, but it probably to slow.
I have to say, the mouse support is indeed definitely awesome.
Edit : NoteWriter's tabs are a neat idea, though :P


Quote
* He says it's buggy for now as MicroPython exists right after launching it, apparently.
Works for me, just the direct way with nl_exec without workarounds..
Well, I've pointed him to the source and here, so I guess he can take a look at what you did.
« Last Edit: December 06, 2014, 03:15:39 pm by Adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Lepzulnag

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: pyWrite - python script editor
« Reply #37 on: December 06, 2014, 05:33:05 pm »
Hi guys :)

I actually agree the mouse cursor is an awesome idea that I've no idea how to code. It's smooth and useful.

I'm sorry if I didn't post the code ; actually im not used to Github and cie. However I will work soon to put the code online. Notewriter uses the framework Winbox, so it's not easy to understand all my code, since its separated between the frameword and Notewriter's source code itself.

About nl_exec, it seems its not buggy, but I just couldnt test it properly, so I dont know : it may be buggy. If someone wanna tests it for me, I'd be glad :)

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: pyWrite - python script editor
« Reply #38 on: December 06, 2014, 05:46:08 pm »
Hello everyone,
Does anybody have any idea if there is a possibility of adding the SymPy Python library to micropython? it would be very useful for advanced python programming and i use it alot on desktop, so im wondering if there is any way...
http://www.sympy.org/en/index.html
Take a look and thanks Vogtinator :P its great.


It looks like that is a pure-python library, which means that you should be able to use it without doing anything special
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: pyWrite - python script editor
« Reply #39 on: December 06, 2014, 06:53:05 pm »
@Vogt/Lepzulnag as suggested by Bisam, maybe the immediate exit was due to an older version of micropython, one before "pauses" get added automatically when launch from the FS...

So yeah, nl_exec is probably not buggy, but you may need to update your micropython :P
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: pyWrite - python script editor
« Reply #40 on: December 06, 2014, 08:26:30 pm »
Bump.

Lepzulnag released "NoteWriter 2.0" (beta for now) which has python-related features :)


[picture]

Main features
Quote
- Highlight syntax for .py files
- You can open multiple files on the same work space
- Sweet grahisms
- Text selection, copy and paste
- Fast, and no limit to file size
- Possibility to execute .py scripts directly from Notewriter *.

* He says it's buggy for now as MicroPython exists right after launching it, apparently.

I suggested on the announcement topic that he and Vogtinator should combine the most interesting features from both in order to create the perfect editor - so far, both have unique features, it would be great to merge them ! :)


I really like the dark theme
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: pyWrite - python script editor
« Reply #41 on: December 08, 2014, 12:05:10 pm »
Thanks for this editor, it's really great!

I have suggestions about it:
* Draw a smaller menu and hide it when the program doesn't fit the screen (and use the scratchpad button to show it).
* Make mouse move box smaller so that we can at any time see at least on pixel of the mouse.
* Make an auto indentation.
* Add a scrolling bar.
* Open the last document on launching.



Offline Spartan

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
  • Spartan. Kicking ass since 480BC.
    • View Profile
Re: pyWrite - python script editor
« Reply #42 on: December 08, 2014, 04:54:58 pm »
Hello everyone,
Does anybody have any idea if there is a possibility of adding the SymPy Python library to micropython? it would be very useful for advanced python programming and i use it alot on desktop, so im wondering if there is any way...
http://www.sympy.org/en/index.html
Take a look and thanks Vogtinator :P its great.


It looks like that is a pure-python library, which means that you should be able to use it without doing anything special

That would be cool as it is a pure python library, but im having troubles actually making it useable on the ti nspire CX CAS... i cant transfer the library over due to restrictions on the software, as it obviously has to be a TI Nspire file, and obviously the files i need to import are .py... any ideas how this may be available to do?



I have suggestions about it:
* Draw a smaller menu and hide it when the program doesn't fit the screen (and use the scratchpad button to show it).
* Make mouse move box smaller so that we can at any time see at least on pixel of the mouse.
* Make an auto indentation.
* Add a scrolling bar.
* Open the last document on launching.

Agreed :) Nice work guys, never thought there would be such a rich community for such a thing, on these calculators :D

Please mind my english, it is not my native tongue :P
Thanks for this editor, it's really great!
Add me on steam :

My Steam Profile (from SteamDB)

  • Worth: £1117 (£294 with sales)
  • Games owned: 106
  • Games not played: 69 (65%)
  • Hours on record: 770.5h
Chris

Offline Lepzulnag

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: pyWrite - python script editor
« Reply #43 on: December 11, 2014, 01:35:54 am »
That would be cool as it is a pure python library, but im having troubles actually making it useable on the ti nspire CX CAS... i cant transfer the library over due to restrictions on the software, as it obviously has to be a TI Nspire file, and obviously the files i need to import are .py... any ideas how this may be available to do?

I'm not a python-user, so I'm not awared about how to import a python library.
Do you only need to transfer the .py files to the calc to use the library ? If that is so, I'm already working on a solution.

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: pyWrite - python script editor
« Reply #44 on: December 11, 2014, 08:16:06 am »
I tried running sympy on the unix version of micropython, and I think it needs some editing to work, the imports don't work right.
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3