ansys / pymechanical-examples

Repository holding PyMechanical remote examples
https://examples.mechanical.docs.pyansys.com/
MIT License
1 stars 1 forks source link

Bump panel from 0.14.4 to 1.0.4 in /requirements #30

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps panel from 0.14.4 to 1.0.4.

Release notes

Sourced from panel's releases.

Version 1.0.4

Another micro-release in the 1.0.x series addressing small issues reported by our engaged community. Many thanks to @​ahuang11, @​simzer, @​alexmilowski and the core contributors @​droumis, @​Hoxbro and @​philippjfr for contributing to this release.

  • Fix global loading spinner (#4936)
  • Fix issues resolving IPyWidget model (#4939)
  • Fix recursive and inplace updates on reactive panes (#4946, #4958)
  • Fix issues with single Select widget (#4947)
  • Ensure CSS config parameters can be passed to Template constructor (#4948)
  • Fixed vizzu data series type conversion for datetime (#4955)
  • Small documentation fixes (#4943, #4960)
  • Fix icon on Toggle and Button widget (#4961)
  • Fix Volume definition on Video pane
  • Ensure icon renders on Toggle button (#4969) (#4970)
  • Ensure Card.header_color is correctly applied (#4971)
  • Update param.List signatures to suppress warnings (#4973)
  • Fix font loading in VanillaTemplate (#4975)
  • Guard is_file check on Windows (#4985)
  • Fix serialization of Plotly.selection_data (#4987)
  • Speed up dynamic layout updates (#4989)

Version 1.0.3

Another micro-release in the 1.0.x series with a number of smaller bug fixes. Most importantly this resolves issues with loading indicators and with apps converted to the pyodide-worker target. Many thanks to @​n3011, @​Hoxbro and @​philippjfr for contributing to this release.

  • Resolve _repr_jpeg_ methods correctly (#4904)
  • Fix handling of queued events in pyodide worker (#4913)
  • Various fixes for loading indicator (#4915)
  • Allow -1 in Tabs.active and allow recovering from closed tabs (#4920)
  • Ensure HoloViews layout is correctly initialized when center is set (#4921)
  • Ensure VSCode editor does not apply white background to Panel output (#4923)
  • Do not error on deserialization errors in notebooks (#4927)
  • Ensure basic auth provider works when dynamically starting server (#4926)
  • Ensure Param pane name is updated when object changes (#4928)
  • Align functionality and styling of FileDownload with Button (#4929)
  • Fix equality comparisons of parameter values when updating a Pane (#4934)
  • Warn about ignored widget parameters on Param pane (#4934)

Version 1.0.2

A micro-release in the 1.0.x series with a number of bug fixes and documentation tweaks. Many thanks to @​jbednar and @​philippjfr for contributing to this release.

Bug fixes

  • Ensure Design stylesheets are not replaced when updating component stylesheets (#4883)
  • Ensure tooltips are rendered correctly as HTML (#4887)
  • Fix loading of index page resources (#4891)
  • Ensure FloatPanel can be rendered in classic notebooks (#4892)
  • Attempt rendering output in notebooks even if not all resources have been initialized (#4893)
  • Do not load large bokeh-mathjax bundle in notebooks by default (#4895)
  • Make Fast template sidebar opening transition smoother (#4898)
  • Ensure new items added to Card layout are rendered (#4899)
  • Fix logo rendering in BasicAuth template (#4900)

... (truncated)

Changelog

Sourced from panel's changelog.

Version 1.0.4

Date: 2023-05-31

Another micro-release in the 1.0.x series addressing small issues reported by our engaged community. Many thanks to @​ahuang11, @​simzer, @​alexmilowski and the core contributors @​droumis, @​Hoxbro and @​philippjfr for contributing to this release.

  • Fix global loading spinner (#4936)
  • Fix issues resolving whether IPyWidget model (#4939)
  • Fix recursive and inplace updates on reactive panes (#4946, #4958)
  • Fix issues with single Select widget (#4947)
  • Ensure CSS config parameters can be passed to Template constructor (#4948)
  • Fixed vizzu data series type conversion for datetime (#4955)
  • Small documentation fixes (#4943, #4960)
  • Fix icon on Toggle and Button widget (#4961)
  • Fix Volume definition on Video pane
  • Ensure icon renders on Toggle button (#4969) (#4970)
  • Ensure Card.header_color is correctly applied (#4971)
  • Update param.List signatures to suppress warnings (#4973)
  • Fix font loading in Vanilla template (#4975)
  • Guard is_file check on Windows (#4985)
  • Fix serialization of Plotly.selection_data (#4987)
  • Speed up dynamic layout updates (#4989)

Version 1.0.3

Date: 2023-05-25

Another micro-release in the 1.0.x series with a number of smaller bug fixes. Most importantly this resolves issues with loading indicators and with apps converted to the pyodide-worker target. Many thanks to @​n3011, @​Hoxbro and @​philippjfr for contributing to this release.

  • Resolve _repr_jpeg_ methods correctly (#4904)
  • Fix handling of queued events in pyodide worker (#4913)
  • Various fixes for loading indicator (#4915)
  • Allow -1 in Tabs.active and allow recovering from closed tabs (#4920)
  • Ensure HoloViews layout is correctly initialized when center is set (#4921)
  • Ensure VSCode editor does not apply white background to Panel output (#4923)
  • Do not error on deserialization errors in notebooks (#4927)
  • Ensure basic auth provider works when dynamically starting server (#4926)
  • Ensure Param pane name is updated when object changes (#4928)
  • Align functionality and styling of FileDownload with Button (#4929)
  • Fix equality comparisons of parameter values when updating a Pane (#4934)
  • Warn about ignored widget parameters on Param pane (#4934)

Version 1.0.2

Date: 2023-05-19

A micro-release in the 1.0.x series with a number of bug fixes and documentation tweaks. Many thanks to @​jbednar and @​philippjfr for contributing to this release.

Bug fixes

... (truncated)

Upgrade guide

Sourced from panel's upgrade guide.

Upgrade Guide

Welcome to the Upgrade Guide for Panel! When we make backward-incompatible changes, we will provide a detailed guide on how you can update your application to be compatible with the latest changes.

Version 1.0

The 1.0 release brings a wealth of improvements compared to the 0.x series, including significant changes to the layout engine and an improved approach to handling CSS for individual components. These improvements are thanks to the new Bokeh 3.x releases, which received a bottom-up rewrite of layouts and CSS handling. These updates not only boost the performance but also elevate the customizability of your Panel apps.

As with any major update, it's important to understand the implications of these changes for your existing applications. This guide is designed to walk you through the key updates introduced in Panel 1.0, the rationale behind them, and the critical considerations to consider while adapting your applications to this new version. We'll take you on a comprehensive journey, outlining how the new layout engine transforms how you create and manage your Panel apps and the impact of the enhanced CSS handling on your components.

By the end of this guide, you will have a clear understanding of how to leverage the full potential of Panel 1.0's features and enhancements, ensuring a smooth transition for your applications. So, without further ado, let's dive into the exciting world of Panel 1.0 and explore the new possibilities it has to offer!

The layout engine

Panel 1.0, built upon Bokeh 3.0, introduces a CSS-based layout engine that replaces the previous engine, primarily optimized for plotting. This upgrade results in improved performance, especially when handling a multitude of components on the page at the same time and makes it possible to create more complex applications without sacrificing speed and responsiveness.

Additionally, Panel 1.0 offers better sizing of components that are slow to render, such as images. By removing the need for explicit CSS size overrides, Panel 1.0 streamlines the customization process for your layouts. This added flexibility makes it easier to tailor your apps to fit your design goals and user needs.

However, it's important to note that the complete replacement of the layout implementation might not ensure identical behavior to previous versions. In the upcoming sections, we'll review key points to consider when adapting to this new layout engine.

sizing_mode

The sizing_mode has been the primary way to configure the responsiveness of components in Panel, and that has not changed. However, previously the layout engine was quite forgiving in the way it interpreted combinations of the sizing_mode and explicit width/height settings that really did not make sense. Before we dive into some of these differences, let's briefly go through the different sizing_mode options and what they actually mean:

Container sizing_mode

  • stretch_width: Stretches content/container in width, while the size of contents determines the height.
  • stretch_height: Stretches content/container in height, while the size of contents determines the width.
  • stretch_both: Stretches content/container in both width and height.

Now let us explore what changed in this release. In the past, the behavior of a responsive component inside a non-responsive container was poorly defined. Generally it would force the container to be responsive as well, but often it would only be width responsive. In this release there are a number of well defined behaviors which determine how a container behaves when it wraps one or more responsively sized component:

  • If a child is responsive in width then the layout should also be responsive in width (unless a fixed width has been).
  • If a container is vertical (e.g. a Column) or supports responsive reflowing (e.g. a FlexBox) and a child is responsive in height then the container should also be height-responsive (unless a fixed height is set).
  • If a container is horizontal (e.g. a Row) and all children are responsive in height then the container should also be height-responsive. This behavior is asymmetrical with width because there isn't always vertical space to expand into and it is better for the component to match the height of the other children.
  • If any children declare a fixed width or height then the container will inherit these as min_width and min_height settings to ensure that sufficient space is allocated.

These very explicit rules ensure consistent behavior in most cases, however it is always best to be explicit and declare the sizes.

Let us walk through an example. Below we declare a responsive Image and a fixed-size Markdown pane inside a Row. According to the rules above the Row layout will inherit responsive sizing in width but not height. Additionally it will inherit a min_width from the Markdown pane.

:::{note} To maintain backward compatibility Panel will still try to infer the appropriate sizing mode by inspecting the children of a container. It is, however, always best to be explicit. :::

Ambiguous configurations

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #33.