Module 2, UGL_1

Where do I find the requirements.txt file?

Readme.md says:
Install dependencies from the root directory:

pip install -r requirements.txt

Hello @Alex69 , welcome!

To run and explore the Ungraded Lab, you don’t need to follow any of the instructions in the README.md file, just run the cells in the Lab notebook.

You also don’t need to open the README.md or any files in M2/ungraded_labs/M2_UGL_2; those were only used to set up the notebook. You can take a look at how things are set up under the hood, but there’s no need to make any changes there. (requirements.txt is a file that lists all the packages and their versions that a project depends on - these have already been installed)

1 Like

Dear Anna_Kay,

thanks for your quick answer. All this is known to me, but I want to ā€œre-engineerā€ your Jupiter notebook in my Visual Studio Code workspace. So it would have been very convenient if you provide the requirements.txt file for setting up to .venv environment. Especially if you mention this file in the Readme file you should also provide this file. Otherwise it is confusing for the user.

Thanks for this great short course!

Best regards from Germany,

Alex

Oh, I see. That sounds like a reasonable request :slight_smile: . I’ll pass it along to the development team.

Unfortunately, I can’t guarantee when they’ll be able to review it. Since you’re not a beginner, it might take you less time to reconstruct the requirements.txt file.

In any case, I’ll update this thread as soon as there’s an update or response from the team.

Best,

Hi @Alex69 ,

Short term fix - I tried this code below in a code cell that I added to the notebook. You can then copy and paste the output into a requirements.txt file:

import sys
import subprocess

result = subprocess.run([sys.executable, ā€˜-m’, ā€˜pip’, ā€˜list’, ā€˜ā€“format=freeze’],
capture_output=True, text=True)
print(result.stdout)

1 Like