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

Notebooker Windows Issues #174

Open
beebeed opened this issue Mar 31, 2024 · 3 comments
Open

Notebooker Windows Issues #174

beebeed opened this issue Mar 31, 2024 · 3 comments

Comments

@beebeed
Copy link

beebeed commented Mar 31, 2024

Love the project and concepts but having a few issues in getting this up and running on windows 11

  1. In window virtual env the executable notebooker-cli is in the script folder so

    os.path.join(sys.exec_prefix, "bin", "notebooker-cli"),

    should be replaced by
    os.path.join(sys.exec_prefix, "Scripts", "notebooker-cli")

  2. Babel needs a locale defined

    metadata["time_diff"] = babel.dates.format_timedelta(datetime.datetime.now() - metadata["latest_run"])

    should be replaced by
    metadata["time_diff"] = babel.dates.format_timedelta(datetime.datetime.now() - metadata["latest_run"], locale = "en")

  3. open statements should include encoding="utf-8")

    with open(ipynb_executed_path, "r") as f:

    with open(ipynb_path, "r") as nb_file:

    i.e. open(ipynb_path, "r", encoding="utf-8")

  4. this still appears to be an issue with a blank results page output
    Results page is empty in Windows 10 #77 (comment)

this returns an empty array
http://127.0.0.1:11828/core/get_all_available_results?limit=100&report_name=sample/plot_random
but this works... it is to do with slashes
http://127.0.0.1:11828/core/get_all_available_results?limit=100&report_name=sample\plot_random
I couldnt work out where best to fix this... any advice.

@beebeed
Copy link
Author

beebeed commented Apr 1, 2024

FYI... I think that the windows compatibility started to be looked at in this branch to address slashes issues
https://github.com/man-group/notebooker/compare/windows-compat

@jonbannister
Copy link
Collaborator

Thanks for the report, we will try to take a look. If you were able to fix locally in the meantime then contributions are very welcome!

@beebeed
Copy link
Author

beebeed commented May 9, 2024

ok... when I get a moment I will submit some fixes

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

No branches or pull requests

2 participants