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

[Feature Request] Provide instruction for installing and running the optimizer locally #8

Closed
YorkZ opened this issue Sep 21, 2022 · 9 comments · Fixed by #9
Closed
Labels
enhancement New feature or request

Comments

@YorkZ
Copy link

YorkZ commented Sep 21, 2022

Which module is related to your feature request?
Optimizer

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

I'm more efficient and productive when doing things locally compared with doing remotely. In this case, I would prefer running the optimizer locally on my system instead of having to run it in Google Colab. Being able to run the optimizer on my local system would, to the very least, eliminate from having to upload the exported deck, changing the .apkg file name and the time zone every time. Also, I use Linux, so I guess that setting it up on Linux would be a bit easier.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

@YorkZ YorkZ added the enhancement New feature or request label Sep 21, 2022
@YorkZ YorkZ changed the title [Feature Request] Provide instruction for installing and running the Optimizer locally [Feature Request] Provide instruction for installing and running the optimizer locally Sep 21, 2022
@L-M-Sherlock
Copy link
Member

You can run it locally through jupyter notebook. I will export the requirements of dependencies.

@YorkZ
Copy link
Author

YorkZ commented Sep 22, 2022

Yep, I had Jupyter Notebook installed, but I suppose there would be quite a few dependencies to install as well.

@L-M-Sherlock L-M-Sherlock linked a pull request Sep 22, 2022 that will close this issue
@YorkZ
Copy link
Author

YorkZ commented Sep 22, 2022

Thank you so much @L-M-Sherlock, you are so fast 👍

@L-M-Sherlock
Copy link
Member

You are welcome. And I am looking forward to your reply if you encounter any problems.

@YorkZ
Copy link
Author

YorkZ commented Sep 22, 2022

Just noticed in the requiremets.txt file that all the packages are pinned to specific versions. Do I have to install those exact versions? Are newer versions than those pinned ones OK?

@L-M-Sherlock
Copy link
Member

I just used pip freeze > requirements.txt. You can use other versions. But it will make replication hard if you meet some bugs caused by a specific version of dependencies.

@L-M-Sherlock
Copy link
Member

Do you run it in local successfully? I think it is better to create a new virtual venv to run it. You can install the dependencies via pip install -r requirements.txt.

@YorkZ
Copy link
Author

YorkZ commented Sep 23, 2022

Yep, I agree that creating a virtualenv dedicated for it might be better. I haven't got the time to do this yet.

@L-M-Sherlock
Copy link
Member

Thanks for your testing anyway. And waiting for your good news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants