• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

How to add external libraries to Thonny

Q&A Forum › Category: Other › How to add external libraries to Thonny
0 Vote Up Vote Down
Phil Goddard asked 6 years ago

I have followed your tutorial on Thonny, which was great. I now want to add an external library from Adafruit, for the SI1145 UV sensor, I have tried to use the options under ‘Tools’, but am lost to know what to download and how to do it
It sounds like I have found the subject for another Thonny Tutorial.. 

3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello Phil. Yes, we’ll add details about that in the next update. In the meanwhile, here’s how you do it:

  • Create a new file in Thonny IDE
  • Save the new file with the exact library name, for example: si1145.py
  • Then, in Thonny IDE go to the “Device” menu > “Upload current script with current name”

That’s how you import a library or a file with a different name (rather than boot.py or main.py). Let me know if that works for you.

0 Vote Up Vote Down
Phil Goddard answered 6 years ago

Thank you, yes that worked a treat, after I had found the correct version for the ESP8266 and not the Raspberry Pi !
I’m looking forward to more Thonny tutorials.  

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Yes, that will be included in the next update (it should be released next week)! Let me know if there’s anything else that you need.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.