get library...

7 views
Skip to first unread message

EDUCATIA SUPERLATIV

unread,
Dec 11, 2025, 3:45:31 PM (4 days ago) Dec 11
to VPython-users
Hi,

I want to use 
get_library("https://raw.githubusercontent.com/cipriandragne/JAVA/master/pretexte_007.js")
let textbtn = function(){ idtomesaje007("101"); }”

I check the code from JAVA in other programs. 
Why does this code not work in VPython?

Best regards,
Ciprian


John

unread,
Dec 13, 2025, 12:45:28 PM (2 days ago) Dec 13
to VPython-users
Here is the vpython documentation link for get_library

https://glowscript.org/docs/VPythonDocs/file.html

You asked this question in the VPython 7 forum so I assume you are NOT using web vpython. From this documentation there is a warning at the top that says

" The options discussed below are available in Web VPython only. In Python with the vpython package, use the standard Python file and import methods.  "

So if you are trying to use get_library in a vpython program that is NOT web vpython then it won't work. If you are using web vpython the try the "web vpython users forum" at the link below and enter "get_library" into the search box and you will see a lot of discussions about the use of get_library.

https://groups.google.com/g/glowscript-users
Reply all
Reply to author
Forward
0 new messages