Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ENH: remove bash execution preambles from cookbook notebooks (#717)#720

Open
Abhishek9639 wants to merge 1 commit into
PyPortfolio:main from
Abhishek9639:Abhishek
Open

ENH: remove bash execution preambles from cookbook notebooks (#717) #720
Abhishek9639 wants to merge 1 commit into
PyPortfolio:main from
Abhishek9639:Abhishek

Conversation

@Abhishek9639

@Abhishek9639 Abhishek9639 commented Mar 2, 2026

Copy link
Copy Markdown

[ENH] remove bash execution from cookbook notebooks. Closes #717

I’ve removed the bash setup cells from all five cookbook notebooks. These cells were mainly installing packages and cloning the repo, which is only required when running the notebooks on Google Colab.

Since our CI pipeline already installs all required dependencies, before running the notebook tests via nbmake, those setup steps were redundant in this repository.

I double checked that all imports used in the notebooks (numpy, pandas, matplotlib, yfinance, cvxpy, pypfopt) are already covered in pyproject.toml, so no dependency changes were needed.

I also ran the full test suite locally all tests passed.

Copy link
Copy Markdown
Author

@fkiraly,
I’ve opened this PR to address #717. I removed the Colab-specific setup cells (!pip install, git clone, os.chdir) from the five cookbook notebooks since CI already handles dependencies before running the tests. Imports are already covered in pyproject.toml, so no dependency changes were needed. Please review when you get a chance.
If any changes are needed, please let me know.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[ENH] remove bash execution from cookbook notebooks

1 participant

AltStyle によって変換されたページ (->オリジナル) /