flekschas / jupyter-scatter-tutorial

Jupyter Scatter Tutorial (that was first presented at SciPy '23)
https://colab.research.google.com/github/flekschas/jupyter-scatter-tutorial/blob/main/notebooks/Index.ipynb
Apache License 2.0
20 stars 0 forks source link

Get tutorials working on colab #4

Closed faroit closed 1 month ago

faroit commented 1 month ago

👋 @flekschas as part of the JOSS review I wanted to try jupyter-scatter myself and started with these notebooks. I found that they didn't seem to run out-of-the-box on colab for me, though.

import jscatter
import numpy as np

jscatter.plot(x=np.random.rand(500), y=np.random.rand(500))
flekschas commented 1 month ago

@faroit Good points! I'll add install instructions for Google Colab to the notebooks.

Regarding point 3, could you provide more details? I just tried it and everything works as expected. Did you by chance accidentally installed jscatter first? I noticed that uninstalling jscatter and then installing jupyter-scatter does not work in Google Colab. I had to start a new session.

Screenshot 2024-08-25 at 12 50 08 PM

faroit commented 1 month ago

@flekschas regarding the third point, it's true that it works fine when running installing in a fresh kernel so that was my mistake of installing the wrong package first. But maybe that also emphasizes the importance of mentioning the package name clash somewhere.

flekschas commented 1 month ago

@faroit I've added pip install instructions to the notebooks via https://github.com/flekschas/jupyter-scatter-tutorial/pull/5. I've also added a note about the install instruction to the README. Does this address your other concerns?

faroit commented 1 month ago

@flekschas excellent. Thanks a lot!