rapids-single-cell-examples icon indicating copy to clipboard operation
rapids-single-cell-examples copied to clipboard

Colab implementation

Open saketkc opened this issue 3 years ago • 2 comments

Thanks for creating the notebooks!

I was interested in trying out the examples with an easy access to GPU. Are there plans to support Colab-friendly notebooks?

I put up a small example using the PBMC dataset here (this one being a small dataset is probably not the best to demonstrate the advantages of a GPU implementation though): https://colab.research.google.com/drive/1yHzkDfpqHOlX8jA3DqFTQNFyeubrt-YD?usp=sharing

saketkc avatar Jul 12 '20 20:07 saketkc

I'm also interested in trying out the single cell clustering examples on Google Colab including the examples show here https://developer.nvidia.com/blog/accelerating-single-cell-genomic-analysis-using-rapids/

@saketkc I'm seeing an error with you Colab notebook

********************************************************************************************************

Enjoy using RAPIDS!  If you have any issues with or suggestions for RAPIDSAI on Colab, please create a issue on https://github.com/rapidsai/rapidsai-csp-utils/issues/new.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-3-f8691e4eb843>](https://localhost:8080/#) in <module>()
      4 import sys, os
      5 
----> 6 dist_package_index = sys.path.index('/usr/local/lib/python3.6/dist-packages')
      7 sys.path = sys.path[:dist_package_index] + ['/usr/local/lib/python3.6/site-packages'] + sys.path[dist_package_index:]
      8 sys.path

ValueError: '/usr/local/lib/python3.6/dist-packages' is not in list

cornhundred avatar Jun 30 '22 19:06 cornhundred

@cornhundred - I think Colab now uses Python 3.7 by default so it should hopefully work if you replace 3.6 by 3.7 - though I haven't tested if the above approach still works.

saketkc avatar Jun 30 '22 20:06 saketkc