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

utils import error in example notebooks #250

Closed
sbembenek18 opened this issue Sep 20, 2023 · 1 comment
Closed

utils import error in example notebooks #250

sbembenek18 opened this issue Sep 20, 2023 · 1 comment

Comments

@sbembenek18
Copy link

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
Copy link
Owner

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.

@pavlin-policar pavlin-policar changed the title Problems with Conda Install utils import error in example notebooks Nov 12, 2023
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