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

Enable interactive PyViz plots properly #31

Merged
merged 3 commits into from
May 23, 2020
Merged

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented May 23, 2020

Back in the good old days, I could have sworn that Holoviews+Datashader does dynamic updating when zooming into maps just like that (clicks fingers). In my old ICESat-1 notebook from Jan 2018, I was definitely plotting millions of (datashaded) points without any issues.

The trick now in the new decade seems to be 🤞 to install the jupyter labextension @pyviz/jupyterlab_pyviz from npm as mentioned in https://hvplot.holoviz.org/getting_started/index.html#installation.

Because of some weird issue with my university network, I had to add network-timeout 600000 to .yarnrc file (see yarnpkg/yarn#5259 (comment)) before going through a slightly more involved step:

jupyter lab clean
jupyter labextension install @pyviz/jupyterlab_pyviz --no-build
jupyter labextension list  # check to see that extension is installed
jupyter lab build --debug  # build extension ??? with debug messages printed

Note: this was documented in the atl06_play.ipynb notebook under the XrViz section.

dependabot-preview bot and others added 2 commits May 23, 2020 11:53
Bumps [geoviews](https://github.com/holoviz/geoviews) from 1.7.0 to 1.8.1.
- [Release notes](https://github.com/holoviz/geoviews/releases)
- [Changelog](https://github.com/holoviz/geoviews/blob/master/CHANGELOG.md)
- [Commits](holoviz/geoviews@v1.7.0...v1.8.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
For properly enabling interactivity in jupyter lab with bokeh > 2.0.0, I think. Requires nodejs to be installed, also updated main README.md with installation instructions.
@weiji14 weiji14 added the bug 🪲 Something isn't working label May 23, 2020
@weiji14 weiji14 added this to the v0.1.0 milestone May 23, 2020
To resolve package conflicts in conda, don't get the latest and greatest.
@weiji14 weiji14 merged commit 3a1e2ec into master May 23, 2020
@weiji14 weiji14 deleted the interactive_pyviz_plots branch May 23, 2020 01:44
@weiji14
Copy link
Owner Author

weiji14 commented May 24, 2020

Plots still not working interactively, tracking it down to problem with pip installing bokeh perhaps. Question asked at https://discourse.bokeh.org/t/bokeh-plot-not-updating-locally-but-works-on-mybinder/5568.

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

Successfully merging this pull request may close these issues.

1 participant