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

Added **kwargs to upload() and File.as_html() methods #1881

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

SiddhantSadangi
Copy link
Member

@SiddhantSadangi SiddhantSadangi commented Oct 29, 2024

Before submitting checklist

This change lets you pass include_plotlyjs as a keyword-only argument to upload() and as_html() methods.

The default True value retains current behaviour, while passing "cdn" reduces the size of the uploaded HTML file by ~3MB, but requires an internet connection.

Closes (#1870)

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

@SiddhantSadangi SiddhantSadangi self-assigned this Oct 29, 2024
@SiddhantSadangi SiddhantSadangi changed the title Added **kwargs to upload() and File.as_html() methods Added **kwargs to upload() and File.as_html() methods Oct 29, 2024
@SiddhantSadangi SiddhantSadangi linked an issue Oct 29, 2024 that may be closed by this pull request
@SiddhantSadangi SiddhantSadangi added this to the 1.13.0 milestone Oct 29, 2024
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Project coverage is 75.59%. Comparing base (26e08ab) to head (fbae62f).
Report is 3 commits behind head on dev/1.x.

Files with missing lines Patch % Lines
src/neptune/handler.py 75.00% 1 Missing ⚠️
src/neptune/types/atoms/file.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           dev/1.x    #1881      +/-   ##
===========================================
- Coverage    81.23%   75.59%   -5.64%     
===========================================
  Files          303      303              
  Lines        15382    15364      -18     
===========================================
- Hits         12495    11614     -881     
- Misses        2887     3750     +863     
Flag Coverage Δ
e2e ?
e2e-management ?
e2e-s3 ?
e2e-s3-gcs ?
e2e-standard ?
macos 75.32% <88.23%> (-5.70%) ⬇️
py3.10 ?
py3.11 ?
py3.12 ?
py3.8 75.59% <88.23%> (-5.60%) ⬇️
py3.9 ?
ubuntu 75.46% <88.23%> (-5.56%) ⬇️
unit 75.59% <88.23%> (-0.05%) ⬇️
windows 74.50% <88.23%> (-6.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kgodlewski kgodlewski merged commit 7da7535 into dev/1.x Oct 29, 2024
4 checks passed
@kgodlewski kgodlewski deleted the ss/include_plotlyjs branch October 29, 2024 16:09
@SiddhantSadangi
Copy link
Member Author

@kgodlewski - lets wait for @normandy7 to review as there are user-facing changes

Copy link
Collaborator

@normandy7 normandy7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Unnecessarily huge plotly images
3 participants