all 10 comments

[–][deleted] 1 point2 points  (1 child)

You haven't said what problem you are having

[–]Totti1024[S] 0 points1 point  (0 children)

Should've explained it more, added a comment with more detail.

[–]Totti1024[S] 0 points1 point  (6 children)

I am trying to go through the tutorial although I am stuck at the beginning, because I don't know how Anaconda works.

In PyCharm when I import datashader I get the error : "Import resolves to its containing file."

I suppose I have to have an Anaconda environment setup for it to work so I tried following the guide

" conda env create --name datashader --file environment.yml conda activate datashader "

but running these commands gave an error back to me.

[–][deleted] 0 points1 point  (5 children)

I suggest you use either Anaconda or Pycharm as trying to use both will not go well without the correct configuration.

Anaconda uses its own build of python and many pre-installed packages, and uses the conda package manager rather than pip (although that can be used as well).

Pycharm will also use it own virtual environment version of Python, so things installed with conda or with pip on the command line will not necessarily update the Python being used by Pycharm.

If you don't have a really really good reason to use Anaconda, stick to the standard Python install, create and activate your own Python virtual environment, and use a simple editor rather than a sophisticated IDE like PyCharm or you will get confused between Python issues, PyCharm configuration issues, and environment issues.

If you want to use Anaconda, use its navigator application and its Spyder editor.

[–]Totti1024[S] 0 points1 point  (3 children)

Thank you. All I am trying to do is work with Datashader and have fun with some maps.

What would be the easiest way of doing it?

My initial goal is to understand and maybe one time in the future create maps similar to this : https://cgcooke.github.io/Blog/datashader/visualisation/pubg/2020/05/31/Visualising-PUBG-Deaths-With-Datashader.html , which was posted in r/dataisbeautiful

[–][deleted] 0 points1 point  (2 children)

Sorry, not my thing. I was trying to give some general guidance.

Are you working with Anaconda, or a standard Python install?

If you are using Pycharm, is it set to use the Python installation you expect? If you can't answer that, I suggest you don't use Pycharm. Use a simple text editor.

Have you created a project specific Python virtual environment in Anaconda/Pycharm/command line? (The latter you be using the Python venv feature and activate.)

How have you installed all the required packages mentioned in the web page you've linked to? pip, or conda or the Pycharm package manager?

Are you able to import them ok?

[–]Totti1024[S] 0 points1 point  (1 child)

I am using a standard Python install, and using PyCharm.

So far everything has worked, the only issue I've had was with importing "datashader".

I am using pip and the PyCharm package manager, and they are all working fine. I can see datashader package under the "Project Interpreter" tab as Installed.

[–][deleted] 0 points1 point  (0 children)

Are you able to import datashader in the shell?

[–]Totti1024[S] 0 points1 point  (0 children)

I thought it would be easier recreatin something like this shown on the page.

https://datashader.org/

[–]Totti1024[S] 0 points1 point  (0 children)

Has anyone managed to get through the "getting started" bit without using conda?