Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically install Fastquant on-demand on notebooks #383

Open
miohtama opened this issue Jul 23, 2021 · 1 comment
Open

Automatically install Fastquant on-demand on notebooks #383

miohtama opened this issue Jul 23, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@miohtama
Copy link

miohtama commented Jul 23, 2021

Is your feature request related to a problem? Please describe.

A lot of notebooks have commented out pip install line at the start.

Describe the solution you'd like

You can automatically install fastquant on demand like the example below - this considers both installed and fresh notebook servers. It is especially handly for Colab that keeps nuking out your installation between sessions:

try:
    import fastquant
except ImportError:
    # fastquant was not installed, install on demand
    !pip install fastquant
    # Reloads installed Python packages from the desk
    import site
    site.main()  

The user does not need to restart the notebook.

Additional context

Happy to make a PR to update lesson notebooks for this model if this sounds reasonble.

@miohtama miohtama added the enhancement New feature or request label Jul 23, 2021
@mikeejazmines mikeejazmines added the good first issue Good for newcomers label Dec 2, 2021
@mikeejazmines
Copy link
Collaborator

Hey! Good idea, would be a great addition if anyone wants to pick this up

@mikeejazmines mikeejazmines added the help wanted Extra attention is needed label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants