ndless-nspire / Ndless

The TI-Nspire calculator extension for native applications
http://ndless.me
854 stars 103 forks source link

Python Program with Ndless #341

Open renzixilef opened 2 years ago

renzixilef commented 2 years ago

Hi, i dont know if this is a really dumb question or not :). I programmed a Python Script for my TI-Nspire CX 2, but sadly the TI-Nspire doesnt support the use of external python libraries, so i cant use it. I now wonder if I could integrate it using the Ndless SDK, but i cant think of a way to integrate my programm into C-code to make it executable on the calculator (i am not very familiar with c coding). Is there a way to extend the calculators Python libraries or even some kind of way to make this program executable on the TI-Nspire? I really hope, someone can help me.

Vogtinator commented 2 years ago

Hi!

While it's theoretically possible to use ndless to write python libraries in native code, the API for that is not exposed to Ndless applications yet. The issue is that it is OS specific, so applications would have to be build (and most likely written) against a specific OS version or set thereof.

If it's just about allowing .py files to import other .py files in the form of python modules, that should already be possible.

renzixilef commented 2 years ago

Basically its just about imports, but i couldnt make it work. Technically i have to be able to import a whole package not a module though. What can i try?