pavlin-policar / openTSNE

Extensible, parallel implementations of t-SNE
https://opentsne.rtfd.io
BSD 3-Clause "New" or "Revised" License
1.45k stars 160 forks source link

`utils` import error in example notebooks #250

Closed sbembenek18 closed 1 year ago

sbembenek18 commented 1 year ago

I recently installed the OpenTSNE via conda and am running through the 'Simple usage' tutorial.

I am not able to successfully perform -->

'from examples import utils'

Under the conda install there doesn't seem to be an 'examples' folder, although I do see this folder in the full download.

Can you tell me how to install it successfully in the conda environment so that python can access it?

thanks

pavlin-policar commented 1 year ago

The utils module is simply a helper function that contains some color definitions and plotting utilities. You don't actually need it to run openTSNE. Installing openTSNE does not install this module, so it is expected that it wouldn't work.

However, if you want to run the example fully, you can clone the openTSNE repository and run the jupyter server from the openTSNE.examples folder. Python automatically adds the current working directory to the Python path, so, in that case, Python would find the openTSNE utils module since it will be available in the path.

I hope that helps.