Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into improve_namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Nov 17, 2023
2 parents 9e8773c + d282829 commit a339df5
Show file tree
Hide file tree
Showing 17 changed files with 408 additions and 343 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# History of changes

## Version 3.0.0b2 (2023-08-22)

### Pull Requests Merged

* [PR 465](https://github.com/spyder-ide/spyder-kernels/pull/465) - Save temporary file in test to temporary location, by [@juliangilbey](https://github.com/juliangilbey)
* [PR 464](https://github.com/spyder-ide/spyder-kernels/pull/464) - Remove locals inspection, by [@impact27](https://github.com/impact27)
* [PR 460](https://github.com/spyder-ide/spyder-kernels/pull/460) - PR: Add a global filter flag to settings, by [@jsbautista](https://github.com/jsbautista)
* [PR 445](https://github.com/spyder-ide/spyder-kernels/pull/445) - PR: Add `exitdb` command and some speed optimizations to the debugger, by [@impact27](https://github.com/impact27)
* [PR 429](https://github.com/spyder-ide/spyder-kernels/pull/429) - PR: Add a comm handler decorator, by [@impact27](https://github.com/impact27)
* [PR 411](https://github.com/spyder-ide/spyder-kernels/pull/411) - PR: Remove `set_debug_state` and `do_where` calls, by [@impact27](https://github.com/impact27)

In this release 6 pull requests were closed.


----


## Version 3.0.0b1 (2023-06-14)

### Issues Closed
Expand Down Expand Up @@ -43,6 +60,29 @@ In this release 25 pull requests were closed.
----


## Version 2.5.0 (2023-11-06)

### New features

* Add support for chained exceptions to the debugger.
* Improve getting signatures from docstrings.
* Restore compatibility with Python 2.

### Pull Requests Merged

* [PR 475](https://github.com/spyder-ide/spyder-kernels/pull/475) - PR: Skip IPython 8.17.1 in our dependencies for Python 3.9+, by [@ccordoba12](https://github.com/ccordoba12)
* [PR 474](https://github.com/spyder-ide/spyder-kernels/pull/474) - PR: More improvements to getting signatures from text, by [@ccordoba12](https://github.com/ccordoba12)
* [PR 473](https://github.com/spyder-ide/spyder-kernels/pull/473) - PR: Improve getting signatures from docstrings and catch error when trying to get the signature of some objects, by [@ccordoba12](https://github.com/ccordoba12)
* [PR 472](https://github.com/spyder-ide/spyder-kernels/pull/472) - PR: Add support for chained exceptions to the debugger, by [@ccordoba12](https://github.com/ccordoba12)
* [PR 471](https://github.com/spyder-ide/spyder-kernels/pull/471) - PR: Improve the way we depend on IPython and IPykernel per Python version, by [@ccordoba12](https://github.com/ccordoba12)
* [PR 469](https://github.com/spyder-ide/spyder-kernels/pull/469) - PR: Restore compatibility with Python 2, by [@ccordoba12](https://github.com/ccordoba12)

In this release 6 pull requests were closed.


----


## Version 2.4.4 (2023-06-29)

### Issues Closed
Expand Down
2 changes: 1 addition & 1 deletion requirements/posix.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cloudpickle
ipykernel>=6.23.2,<7
ipython>=7.31.1,<9
ipython>=8.12.2,<9
jupyter_client>=7.4.9,<9
pyzmq>=22.1.0
wurlitzer>=1.0.3
Expand Down
2 changes: 1 addition & 1 deletion requirements/windows.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cloudpickle
ipykernel>=6.23.2,<7
ipython>=7.31.1,<9
ipython>=8.12.2,<9
jupyter_client>=7.4.9,<9
pyzmq>=22.1.0
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def get_version(module='spyder_kernels'):
REQUIREMENTS = [
'cloudpickle',
'ipykernel>=6.23.2,<7',
'ipython>=7.31.1,<9,!=8.8.0,!=8.9.0,!=8.10.0,!=8.11.0,!=8.12.0,!=8.12.1',
'ipython>=8.12.2,<8.13; python_version=="3.8"',
'ipython>=8.13.0,<9,!=8.17.1; python_version>"3.8"',
'jupyter-client>=7.4.9,<9',
'pyzmq>=22.1.0',
'wurlitzer>=1.0.3;platform_system!="Windows"',
Expand Down Expand Up @@ -79,7 +80,7 @@ def get_version(module='spyder_kernels'):
install_requires=REQUIREMENTS,
extras_require={'test': TEST_REQUIREMENTS},
include_package_data=True,
python_requires='>=3.7',
python_requires='>=3.8',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Jupyter',
Expand All @@ -88,10 +89,11 @@ def get_version(module='spyder_kernels'):
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Interpreters',
]
)
6 changes: 4 additions & 2 deletions spyder_kernels/comms/frontendcomm.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ def _check_comm_reply(self):
"""
Send comm message to frontend to check if the iopub channel is ready
"""
if len(self._pending_comms) == 0:
# Make sure the length doesn't change during iteration
pending_comms = list(self._pending_comms.values())
if len(pending_comms) == 0:
return
for comm in self._pending_comms.values():
for comm in pending_comms:
self._notify_comm_ready(comm)
self.kernel.io_loop.call_later(1, self._check_comm_reply)

Expand Down
5 changes: 1 addition & 4 deletions spyder_kernels/comms/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,8 @@ def __call__(self, string):
if not self._warning_shown:
self._warning_shown = True

# Don't print handler name for `show_mpl_backend_errors`
# because we have a specific message for it.
# request_pdb_stop is expected to print messages.
if self._name not in [
'show_mpl_backend_errors', 'request_pdb_stop']:
if self._name not in ['request_pdb_stop']:
self._write(
"\nOutput from spyder call " + repr(self._name) + ":\n"
)
Expand Down
Loading

0 comments on commit a339df5

Please sign in to comment.