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

fix(pydeck): Fix cell height in Google Colab #8881

Merged
merged 2 commits into from May 10, 2024

Conversation

donmccurdy
Copy link
Collaborator

@donmccurdy donmccurdy commented May 9, 2024

Currently when using Pydeck in Google Colab, the iframe_height argument sets the minimum height, the iframe renders at that height, and then it incrementally becomes taller until reaching the maximum cell height allowed by colab, 1000px:

colab_height_bug.webm

I believe this is the fix, but haven't found a way to test local builds against Google Colab environments yet. I'll look a bit more into that, and perhaps test on an alpha release if that's not possible. Perhaps there's also some CSS padding or margin contributing to the problem.

Change List

  • Set both minHeight and maxHeight in Google Colab cell size

@donmccurdy donmccurdy added pydeck python Pull requests that update Python code labels May 9, 2024
@donmccurdy donmccurdy marked this pull request as ready for review May 9, 2024 20:16
@coveralls
Copy link

coveralls commented May 9, 2024

Coverage Status

coverage: 89.82%. remained the same
when pulling 9b6eb04 on donmccurdy/fix-pydeck-google-colab-cell-height
into 86f3f84 on master.

@donmccurdy
Copy link
Collaborator Author

I was able to test the local changes in Colab, and the fix works well. I've added a section to the contributing documentation in this PR, explaining how to test local changes in Colab.

@donmccurdy donmccurdy merged commit 950d666 into master May 10, 2024
4 checks passed
@donmccurdy donmccurdy deleted the donmccurdy/fix-pydeck-google-colab-cell-height branch May 10, 2024 12:32
donmccurdy added a commit that referenced this pull request May 23, 2024
* fix(pydeck): Fix cell height in Google Colab
* docs(pydeck): Add documentation about testing local changes in Google Colab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pydeck python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants