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

ipyleaflet Map object fails to display on Jupyter Notebook #43

Open
Naeemkh opened this issue Jul 29, 2020 · 1 comment
Open

ipyleaflet Map object fails to display on Jupyter Notebook #43

Naeemkh opened this issue Jul 29, 2020 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Naeemkh
Copy link
Owner

Naeemkh commented Jul 29, 2020

The main problem happens in Project.show_stations_on_map command. However, it seems it is an ongoing problem with Jupyter notebook.

Tried the following suggestions, however, still no success:
jupyter-widgets/ipyleaflet#336

@Naeemkh Naeemkh added bug Something isn't working help wanted Extra attention is needed labels Jul 29, 2020
@Naeemkh Naeemkh self-assigned this Jul 29, 2020
@Naeemkh
Copy link
Owner Author

Naeemkh commented Jul 29, 2020

I followed these steps and could resolve the issue for Jupyter Lab. However, there are still problems with Jupyter Notbook.

Step 1: Create a virtual environment.

conda create --name dev_tsp python=3.7

Step 2: Activate the created virtual environment

conda activate dev_tsp

Step 3: Install required packages. (inside the tsprocess folder)

pip3 install requirements.txt

Step 4: Install tsprocess package

pip3 install -e trsprocess

Step 5: Install Jupyter Lab:

conda install -c conda-forge jupyterlab

Step 6: Install ipykernel:

conda install -c anaconda ipykernel

Step 7: Register your virtual env into Jupyter Lab:

python3 -m ipykernel install --user --name dev_tsp

Step 8: Install jupyter-leaflet extension:

jupyter labextension install jupyter-leaflet

Step 9: Run Jupyter Lab.

jupyter lab

The maps should render successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant