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

Colab demo notebook #20

Open
lhilbert opened this issue Jul 5, 2020 · 2 comments
Open

Colab demo notebook #20

lhilbert opened this issue Jul 5, 2020 · 2 comments

Comments

@lhilbert
Copy link

lhilbert commented Jul 5, 2020

Hi, very naively trying to get the demos to run in a Colab notebook...my first notebook :-/

This is as far as I got...it seems the demo files are run, but it doesn't manage to import all that's needed.

https://gist.github.com/lhilbert/2de0ee7b8ef3885a19c8c4f0265397da

@VolkerH
Copy link

VolkerH commented Jul 5, 2020

you also need to install the ssi package itself.
I did that with python setup.py install from the cloned folder into my conda environment, not quite sure how it works in colab.

@VolkerH
Copy link

VolkerH commented Jul 6, 2020

Just gave this a try .. there are a few things you need to do:

  • from your ssi-code folder run !python setup.py install
  • if that is successful you can run the demos from that folder (if you cd into the demo folder your paths won't be correct), i.e. !python ssi/demo/demo2D.py.
  • Note that this will run the network, but crash on the displaying the results as you cannot run napari from colab. You will have to change the lines that visualize the results to use matplotlib (or similar) or write the results to your gdrive (see for example my modified version here (not tested on colab)

Note that I just happen to be playing with this code at the same time as you and am not connected to the project.

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