What is the origin of the "helper_functions" used in "AI Python for Beginners"?

The “helper_functions” used in “AI Python for Begineers” course seems like “magic”.

Is there any available documentation on exactly what “helper_functions” is?, where to find it? and what it contains?

Open the “File” menu, and look for any of the python file names that are imported in the first cell of the notebook.

1 Like

@TMosh Hi there, thanks for the pointer but my question remains (pls see attached).

Hi @revworx!

Here’s how I downloaded the files for “Lesson 1: Using functions from a local file” from Week 4 (Extending Python with Packages and APIs).

Steps:

  1. From the platform’s top-of-screen menu, select File > Download as > Notebook (.ipynb), and download the lesson’s Jupyter notebook to a folder on your PC
    [I performed the download itself on a different PC monitor, so it doesn’t show in my .gif screen recording below.]
  2. From that same menu, select “Open …”, which opens up the platform’s remote folder in a 2nd tab
  3. On that 2nd tab, within its folder, click on helper_functions.py, which opens up that source file in a 3rd browser tab
  4. On that 3rd tab, select File > Download from its menu, and download that file to the same folder on your PC

Here’s a .gif screen recording of the process:

Downloading source files from the DeepLearning.ai platform

I hope that helps.

Use “File” then “Open”. Then you will see a list of the files.

Note: This only works if you’re using a notebook that imports the helper assets.

1 Like

hi!!! @revworx
Usually if you click the Jupyter logo, it will get you to the files

1 Like

@RussellJ @TMosh + Deminiko
Thanks guys for the responses…very helpful indeed and very much appreciated. I will post back once I have navigated my way to finding the pot of “magic” at the end of the rainbow.

1 Like

Thanks @deminiko!

I didn’t know you could do that. :light_bulb:

If you click the Jupyter logo, it will get you to the files

I found the exact answer to my original question here:
Week 3, Lesson 2: Lesson 2: Loading and using your own data
more specifically:

from helper_functions import upload_txt_file, list_files_in_directory
list_files_in_directory()