Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.
This repository was archived by the owner on May 23, 2025. It is now read-only.

basic/Tutorial dependencies #179

@PeskyPotato

Description

@PeskyPotato

The pip command used in the first basic/Tutorial notebook is malformed. See image below.
image

I can submit a PR fixing this, however, I can take the opportunity to improve it a little.

  • Using --upgrade when installing multiple packages together can lead to long install times because of pip backtracking. I stopped it after ~30 minutes.
    • I would suggest talking out --upgrade and using version numbers instead. These are the latest version numbers, and I've tested them in my local environment and SageMaker Notebooks too.
    pip3 install boto3>=1.18.42 pandas>=1.3.3 s3fs>=0.4.2 matplotlib>=3.4.3 ipywidgets>=7.6.5
    
  • Also, it's not advisable to use !pip install <package> in Jupyter notebooks as it might not install packages in the same execution environment used by the notebook. For example, I have to use pip3 instead for this to work.
    • The code snippet below is how you can work around the different execution environments (along with version numbers).
    import sys
    !{sys.executable} -m pip install boto3>=1.18.42 pandas>=1.3.3 s3fs>=0.4.2 matplotlib>=3.4.3 ipywidgets>=7.6.5

I've tested it on my local environment, I'll run it on a SageMaker Notebook too to verify the changes are good. If you're happy with the changes, I can submit a PR. 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions