-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Cannot display ipyleaflet in panel #2691
Comments
Thanks for the report. Rendering ipywidgets wrapped in panels as an ipywidget is not currently a supported configuration. Is there any reason why you are switching to
|
Hi @dbeniamine could you try downgrading to ipykernel<6 ? c.f. #2593 |
Ignore my comment, somehow missed the rest of your comment. |
Works for me with Panel 0.12.1, ipyleaflet 0.14.0, ipykernel 5.5.5 Python PackagesPackage Version Location ------------------------- ------------------- ------------------------------------------------------------ absl-py 0.12.0 ahlive 0.0.1 alabaster 0.7.12 alembic 1.4.1 altair 4.1.0 analytics-workspace 0.0.2 c:\repos\private\awesome-panel\.venv\src\analytics-workspace annexremote 1.5.0 anyio 2.0.2 appdirs 1.4.4 argh 0.26.2 argon2-cffi 20.1.0 astor 0.8.1 astroid 2.5.6 astropy 4.0.1.post1 astunparse 1.6.3 atomicwrites 1.4.0 attrs 19.3.0 autoflake 1.4 awesome-panel 20200512.1 c:\repos\private\awesome-panel\package awesome-panel-extensions 20210725.2 c:\repos\private\panel-extensions-template Babel 2.8.0 backcall 0.1.0 bandit 1.7.0 base58 2.1.0 beautifulsoup4 4.9.3 benchmark 0.1.1 black 21.5b1 bleach 3.1.5 blinker 1.4 blis 0.7.4 bokeh 2.3.3 bokeh-root-cmd 0.0.5 Boruta 0.3 boto 2.49.0 Bottleneck 1.3.2 Brotli 1.0.9 cached-property 1.5.2 cachetools 4.1.0 catalogue 1.0.0 certifi 2020.4.5.1 cffi 1.14.5 chardet 3.0.4 click 7.1.2 click-plugins 1.1.1 click-spinner 0.1.10 cligj 0.5.0 cloudpickle 1.6.0 colorama 0.4.3 colorcet 2.0.2 colorlover 0.3.0 commonmark 0.9.1 ConfigArgParse 1.3 confuse 1.1.0 coverage 5.5 cufflinks 0.17.3 cx-Oracle 8.2.0 cycler 0.10.0 cymem 2.0.5 Cython 0.29.14 dash 1.17.0 dash-core-components 1.13.0 dash-html-components 1.1.1 dash-renderer 1.8.3 dash-table 4.11.0 dask 2.26.0 databricks-cli 0.14.3 datalad 0.14.2 datalad-installer 0.3.0 datashader 0.11.1 datashape 0.5.2 decorator 4.4.2 defusedxml 0.6.0 Deprecated 1.2.12 diskcache 5.2.1 distributed 2.26.0 dnspython 1.16.0 doc8 0.8.1 docker 5.0.0 docopt 0.6.2 docutils 0.16 entrypoints 0.3 fasteners 0.16 fastjsonschema 2.15.0 fett 0.3.2 Fiona 1.8.17 fitparse 1.1.0 Flask 1.1.2 Flask-BasicAuth 0.2.0 Flask-Compress 1.8.0 Flask-Cors 3.0.10 Flask-Sockets 0.2.1 flatbuffers 1.12 fsspec 0.8.2 funcy 1.16 future 0.18.2 gast 0.3.3 GDAL 3.1.3 gensim 3.8.3 geopandas 0.7.0 gevent 21.1.2 gevent-websocket 0.10.1 geventhttpclient 1.4.4 gitdb 4.0.5 GitPython 3.1.2 google-auth 1.15.0 google-auth-oauthlib 0.4.1 google-pasta 0.2.0 greenlet 1.0.0 grpcio 1.32.0 h5py 2.10.0 HeapDict 1.0.1 holoviews 1.14.3 htmlmin 0.1.12 humanize 3.4.1 hvplot 0.7.1 idna 2.9 idom 0.23.1 ImageHash 4.1.0 imageio 2.8.0 imageio-ffmpeg 0.4.2 imagesize 1.2.0 imbalanced-learn 0.7.0 importlib-metadata 1.6.0 iniconfig 1.1.1 invoke 1.3.0 ipydatawidgets 4.1.0 ipykernel 5.5.5 ipyleaflet 0.14.0 ipython 7.14.0 ipython-genutils 0.2.0 ipyvolume 0.5.2 ipywebrtc 0.5.0 ipywidgets 7.6.3 ipywidgets-bokeh 1.0.2 iso3166 1.0.1 iso8601 0.1.14 isodate 0.6.0 isort 5.8.0 itsdangerous 1.1.0 jedi 0.17.0 jellyfish 0.6.1 Jinja2 2.11.2 joblib 0.15.1 jsmin 2.2.2 json5 0.9.5 jsonpatch 1.32 jsonpointer 2.1 jsonschema 3.2.0 jupyter 1.0.0 jupyter-bokeh 2.0.0 jupyter-client 6.1.3 jupyter-console 6.1.0 jupyter-containds 0.2.2 jupyter-core 4.6.3 jupyter-packaging 0.7.12 jupyter-server 1.6.0 jupyterlab 3.0.13 jupyterlab-server 2.4.0 jupyterlab-widgets 1.0.0 Keras 2.4.3 Keras-Applications 1.0.8 keras-nightly 2.5.0.dev2021032900 Keras-Preprocessing 1.1.2 keyring 21.2.1 keyrings.alt 4.0.2 kiwisolver 1.2.0 kmodes 0.11.0 lazy-object-proxy 1.4.3 lightgbm 3.2.1 livereload 2.6.1 llvmlite 0.34.0 locket 0.2.0 locust 1.5.2 lux 0.8.2 lux-api 0.3.1 lux-widget 0.1.5 lxml 4.6.3 Mako 1.1.4 Markdown 3.2.2 MarkupSafe 1.1.1 matplotlib 3.3.0 mccabe 0.6.1 missingno 0.4.2 mistune 0.8.4 mlflow 1.17.0 mlxtend 0.18.0 more-itertools 8.3.0 msgpack 1.0.0 multidict 5.1.0 multimethod 1.4 multipledispatch 0.6.0 multitasking 0.0.9 munch 2.5.0 murmurhash 1.0.5 mypy 0.910 mypy-extensions 0.4.3 nbclassic 0.2.6 nbconvert 5.6.1 nbformat 5.0.6 nbsite 0.6.7 networkx 2.5 nibabel 3.2.1 nltk 3.6.2 notebook 6.1.6 numba 0.51.2 numexpr 2.7.3 numpy 1.19.5 oauthlib 3.1.0 opt-einsum 3.3.0 packaging 20.4 pandas 1.2.2 pandas-profiling 2.8.0 pandocfilters 1.4.2 panel 0.12.1 panel-chemistry 0.0.8 c:\repos\private\panel-chemistry panel-highcharts 20210724.2 param 1.11.1 parso 0.7.0 partd 1.1.0 pathspec 0.8.1 pathtools 0.1.2 patool 1.12 patsy 0.5.1 pbr 5.4.5 phik 0.10.0 pickleshare 0.7.5 Pillow 8.1.2 pip 21.1.2 pkginfo 1.5.0.1 plac 1.1.3 plotly 4.14.1 plotlydash-tornado-cmd 0.0.6 pluggy 0.13.1 pockets 0.9.1 port-for 0.3.1 preshed 3.0.5 prometheus-client 0.7.1 prometheus-flask-exporter 0.18.2 prompt-toolkit 3.0.5 protobuf 3.12.1 pscript 0.7.5 psutil 5.7.2 psycopg2 2.9.1 pulsar 2.0.2 pulsar-odm 0.7.0 py 1.10.0 pyarrow 3.0.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycaret 2.3.1 pycparser 2.20 pyct 0.4.6 pydeck 0.2.0 pyflakes 2.2.0 pygifsicle 1.0.1 PyGithub 1.54.1 Pygments 2.6.1 PyJWT 1.7.1 pyLDAvis 3.2.2 pylint 2.8.3 pylint2junit 1.0.1 pymongo 3.11.2 pynndescent 0.5.2 pyod 0.8.8 pyodbc 4.0.30 pyparsing 2.4.7 pyproj 2.6.1.post1 pyrsistent 0.16.0 pytest 6.2.4 pytest-cov 2.12.0 pytest-mock 3.6.1 pytest-sugar 0.9.4 python-dateutil 2.8.1 python-editor 1.0.4 python-jsonrpc-server 0.3.4 pythreejs 2.2.1 pytz 2020.1 pyviz-comms 0.7.4 PyWavelets 1.1.1 pywin32 227 pywin32-ctypes 0.2.0 pywinpty 0.5.7 PyYAML 5.3.1 pyzmq 19.0.1 qtconsole 4.7.4 QtPy 1.9.0 querystring-parser 1.2.4 rdflib 5.0.0 readme-renderer 26.0 recommonmark 0.7.1 regex 2020.5.14 requests 2.24.0 requests-oauthlib 1.3.0 requests-toolbelt 0.9.1 restructuredtext-lint 1.3.0 retrying 1.3.3 rich 10.1.0 rope 0.17.0 rsa 4.0 rshiny-server-cmd 0.0.2 Rtree 0.9.4 scikit-learn 0.23.2 scikit-plot 0.3.7 scipy 1.5.4 seaborn 0.10.1 selenium 3.141.0 Send2Trash 1.5.0 setuptools 41.2.0 Shapely 1.7.0 simplejson 3.17.2 six 1.15.0 smart-open 5.1.0 smmap 3.0.4 snakeviz 2.1.0 sniffio 1.2.0 snooty-lextudio 1.8.3.dev0 snowballstemmer 2.0.0 sortedcontainers 2.2.2 soupsieve 2.2.1 spacy 2.3.7 SPARQLWrapper 1.8.5 Sphinx 1.8.4 sphinx-autobuild 2021.3.14 sphinx-markdown-tables 0.0.15 sphinx-rtd-theme 0.5.2 sphinxcontrib-napoleon 0.7 sphinxcontrib-websupport 1.2.2 SQLAlchemy 1.4.17 sqlparse 0.4.1 srsly 1.0.5 statsmodels 0.12.2 stevedore 1.32.0 streamlit 0.77.0 streamz 0.6.2 tabulate 0.8.9 tangled-up-in-unicode 0.0.6 tblib 1.7.0 tensorboard 2.5.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 tensorflow 2.4.0 tensorflow-estimator 2.4.0 termcolor 1.1.0 terminado 0.8.3 testpath 0.4.4 textblob 0.15.3 thinc 7.4.5 threadpoolctl 2.1.0 toml 0.10.1 toolz 0.10.0 torch 1.5.0+cpu torchvision 0.6.0+cpu tornado 6.1 tqdm 4.59.0 traitlets 4.3.3 traittypes 0.2.1 twine 3.1.1 typed-ast 1.4.3 typer 0.3.2 typing-extensions 3.7.4.2 tzlocal 2.1 umap-learn 0.5.1 urllib3 1.25.9 us 2.0.2 validators 0.18.2 vega-datasets 0.8.0 visions 0.4.4 waitress 2.0.0 wasabi 0.8.2 watchdog 0.10.4 wcwidth 0.1.9 webencodings 0.5.1 websocket-client 1.0.1 Werkzeug 1.0.1 wheel 0.36.2 Whoosh 2.7.4 widgetsnbextension 3.5.1 wordcloud 1.8.1 wrapt 1.12.1 xarray 0.16.2 xlrd 1.2.0 yahooquery 1.0.11 yellowbrick 1.3.post1 yfinance 0.1.63 zict 2.0.0 zipp 3.1.0 zope.event 4.5.0 zope.interface 5.2.0 |
But what works for me is on the server actually. You problem might be notebook related. I've put in a showcase with code here https://discourse.holoviz.org/t/works-with-ipyleaflet/2755 panel-ipyleaflet.mp4 |
@dbeniamine Can you make sure not to load |
We should make sure to highlight this comment in the docs:
|
Did this get resolved? I'm having the same issues. |
Hello,
I am trying to display a ipyleaflet map inside a panel, as show here
I can display the ipyleaflet without panel with:
To display it using panel, I tried:
and got no output but this error in my web console:
I have the same behavior with:
and if I add
comms=ipywidgets
:I have the message
Error displaying widget
in the notebook output and the following in my web console:Software version
The text was updated successfully, but these errors were encountered: