Skip to content

Porting to Python 3.6 for Google Colab #274

@MilesCranmer

Description

@MilesCranmer

Hi,

Great package, thanks for making this!

It just so happens I'm planning on teaching a tutorial on your framework to ~20 Cosmologists here at Princeton on Monday.

Now, my plan is to use colab.research.google.com for this; it's essentially Google Docs for Jupyter notebooks + you get free GPUs. So nobody needs to install this package on their machine, we just use the same in-browser notebook. (It's also great for letting users try out your package before installation).

However, colab uses Python 3.6 and this can't be changed. You state a requirement of 3.7+. Right now I see the error

File "/usr/local/lib/python3.6/dist-packages/sbi/inference/base.py", line 4
    from __future__ import annotations
                                      ^
SyntaxError: future feature annotations is not defined

So, I am curious: how important is 3.7 internally? If need be I can help put a bit of time to porting it to 3.6 - but is this doable and what do I need to change?

Thanks!
Miles

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