This was tested on ubuntu 18.04 LTS following https://automating-gis-processes.github.io/CSC18/course-info/Installing_Anacondas_GIS.html.
I'm naming it as geo:
conda create -n geo python
We start by activating the geo environment:
conda activate geo
Next, install packages:
conda install numpy pandas scipy matplotlib scikit-learn networkx bokeh statsmodels pyspark geopandas cartopy geoplot osmnx folium dash pysal rasterio rasterstats
conda install jupyter ipykernel
python -m ipykernel install --user --name geo --display-name "Python (geo)"
Then you can start a jupyter notebook and create a new notebook with the kernel "Python (geo)". You can change the kernel of an existing notebook in the menu Kernel >> Change kernel.