holoviz-topics / examples

Visualization-focused examples of using HoloViz for specific topics
https://examples.holoviz.org
Creative Commons Attribution 4.0 International
80 stars 24 forks source link

nyc_taxi: Modernize notebooks #370

Closed Azaya89 closed 1 month ago

Azaya89 commented 3 months ago

This PR modernizes the nyc_taxi.ipynb, nyc_taxi-nongeo, and dashboard.ipynb notebooks. After updating the dependencies however, I noticed a bug with the current holoviews version which was fixed here. This will require updating the channels when the new holoviews version is released.


Modernizing an example checklist

Preliminary checks

Change ‘anaconda-project.yml’ to use the latest workable version of packages

Plot API updates (discussed on a per-example basis)

Interactivity API updates (discussed on a per-example basis)

Panel App updates (discussed on a per-example basis)

General code quality updates

Text content

Visual appearance - Example

Visual appearance - Gallery

Workflow (after you have made the changes above)

jbednar commented 3 months ago

Thanks! Can you tell me what steps will let me reproduce this running project? E.g. anaconda-project prepare followed by something to use the git master version of holoviews (or maybe make a dev release?)?

maximlt commented 3 months ago

Thanks! Can you tell me what steps will let me reproduce this running project? E.g. anaconda-project prepare followed by something to use the git master version of holoviews (or maybe make a dev release?)?

It's been updated to depend on pyviz/label/dev. One question though, didn't we say we wanted the projects to depend on defaults as much as possible? During the big update end of last year, I removed pyviz and conda-forge as much as possible.

Azaya89 commented 3 months ago

Thanks! Can you tell me what steps will let me reproduce this running project? E.g. anaconda-project prepare followed by something to use the git master version of holoviews (or maybe make a dev release?)?

I think you can just run it the same way as before (i.e, anaconda-project run), since I've updated the lock files to use the dev version of holoviews.

It's been updated to depend on pyviz/label/dev. One question though, didn't we say we wanted the projects to depend on defaults as much as possible? During the big update end of last year, I removed pyviz and conda-forge as much as possible.

I think this is only temporary until the new holoviews version is released. Afterwards, we can update the lock files. @Hoxbro

hoxbro commented 3 months ago

As @Azaya89 said, it is temporary until the next release of HoloViews is out.

github-actions[bot] commented 3 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

github-actions[bot] commented 3 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

maximlt commented 3 months ago

As @Azaya89 said, it is temporary until the next release of HoloViews is out.

Ok noted thanks. Let's switch back to the defaults channel when HoloViews is released with this fix.

github-actions[bot] commented 3 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

github-actions[bot] commented 3 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

github-actions[bot] commented 3 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

github-actions[bot] commented 2 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

Azaya89 commented 2 months ago

I'm getting this warning when I run doit validate:nyc_taxi: "WARNING: Notebook nyc_taxi/index.ipynb must not contain any code cell outputs, please clear it." but the index.ipynb file doesn't even have any code cell output in the first place.

Does it have something to do with #377 ? @maximlt

maximlt commented 2 months ago

I'm getting this warning when I run doit validate:nyc_taxi: "WARNING: Notebook nyc_taxi/index.ipynb must not contain any code cell outputs, please clear it." but the index.ipynb file doesn't even have any code cell output in the first place.

Does it have something to do with #377 ? @maximlt

Good catch thanks! Should be fixed by https://github.com/holoviz-topics/examples/pull/380.

maximlt commented 2 months ago

I updated your original post with the modernizing checklist.

github-actions[bot] commented 2 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

Azaya89 commented 2 months ago

I have effected most of the requested changes. Pls let me know if I missed anything while we wait for the new holoviews version to be released :)

maximlt commented 2 months ago

@Azaya89 I reviewed the changes you made, they look good to me. What is left I think:

maximlt commented 2 months ago

@Azaya89 hvPlot 0.10.0 has been released so you can now update the code to use bgcolor directly when calling hvPlot instead of via .opts(). When done, please ask Jim if he wants to review.

github-actions[bot] commented 2 months ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

github-actions[bot] commented 1 month ago

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR: https://holoviz-dev.github.io/examples/. You can also download an archive of the site from the workflow summary page which comes in handy when your dev site built was overriden by another PR (we have a single dev site!).

maximlt commented 1 month ago

Merging, thanks @Azaya89, great job!