From ba002f3d84dedfe8391be86eb5e29c6f41b56b13 Mon Sep 17 00:00:00 2001 From: Eric Prestat Date: Sun, 7 May 2023 08:53:08 +0100 Subject: [PATCH] Add changelog entries and API changes --- CHANGES.rst | 4 ++++ upcoming_changes/3145.api.rst | 2 ++ upcoming_changes/3145.maintenance.rst | 1 + 3 files changed, 7 insertions(+) create mode 100644 upcoming_changes/3145.api.rst create mode 100644 upcoming_changes/3145.maintenance.rst diff --git a/CHANGES.rst b/CHANGES.rst index e52735f5ae..f856be1419 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -158,6 +158,10 @@ Model fitting ``metadata`` attribute instead. - The deprecated ``twin_function`` and ``twin_inverse_function`` have been privatized. +- Remove ``fancy`` argument of :meth:`~.model.BaseModel.print_current_values` and :meth:`~.component.Component.print_current_values`, + which wasn't changing the output rendering. + + Signal ------ diff --git a/upcoming_changes/3145.api.rst b/upcoming_changes/3145.api.rst new file mode 100644 index 0000000000..f428b9ed46 --- /dev/null +++ b/upcoming_changes/3145.api.rst @@ -0,0 +1,2 @@ +Fix behaviour of :meth:`~.model.BaseModel.print_current_values`, :meth:`~.component.Component.print_current_values` +and :func:`~.api.print_known_signal_types`, which were not printing when running from a script. They were only printing when running in notebook or qtconsole. Now all print_* functions behave consistently: they all print the output instead of returning an object (string or html). The ipython display will pick the correct rendering when running in an "ipython" context, for example notebook, qtconsole. \ No newline at end of file diff --git a/upcoming_changes/3145.maintenance.rst b/upcoming_changes/3145.maintenance.rst new file mode 100644 index 0000000000..215b49658a --- /dev/null +++ b/upcoming_changes/3145.maintenance.rst @@ -0,0 +1 @@ +IPython and IParallel are now optional dependencies \ No newline at end of file