|
4 | 4 | Changes in Jupyter Client
|
5 | 5 | =========================
|
6 | 6 |
|
| 7 | +5.0 |
| 8 | +=== |
| 9 | + |
| 10 | +5.0.0 |
| 11 | +----- |
| 12 | + |
| 13 | +`5.0.0 on GitHub <https://github.com/jupyter/jupyter_client/milestones/5.0>`__ |
| 14 | + |
| 15 | +New features: |
| 16 | + |
| 17 | +- Introduce :command:`jupyter run` command for running scripts with a kernel, for instance:: |
| 18 | + |
| 19 | + jupyter run --kernel python3 myscript.py |
| 20 | + |
| 21 | +- New method :meth:`.BlockingKernelClient.execute_interactive` |
| 22 | + for running code and capturing or redisplaying its output. |
| 23 | +- New ``KernelManager.shutdown_wait_time`` configurable for adjusting the time |
| 24 | + for a kernel manager to wait after politely requesting shutdown |
| 25 | + before it resorts to forceful termination. |
| 26 | + |
| 27 | +Fixes: |
| 28 | + |
| 29 | +- Set sticky bit on connection-file directory to avoid getting cleaned up. |
| 30 | +- :func:`jupyter_client.launcher.launch_kernel` passes through additional options to the underlying Popen, |
| 31 | + matching :meth:`KernelManager.start_kernel`. |
| 32 | +- Check types of ``buffers`` argument in :meth:`.Session.send`, |
| 33 | + so that TypeErrors are raised immediately, |
| 34 | + rather than in the eventloop. |
| 35 | + |
| 36 | +Changes: |
| 37 | + |
| 38 | +- In kernelspecs, if the executable is the string ``python`` (as opposed to an absolute path), |
| 39 | + ``sys.executable`` will be used rather than resolving ``python`` on PATH. |
| 40 | + This should enable Python-based kernels to install kernelspecs as part of wheels. |
| 41 | +- kernelspec names are now validated. |
| 42 | + They should only include ascii letters and numbers, plus period, hyphen, and underscore. |
| 43 | + |
| 44 | +Backward-incompatible changes: |
| 45 | + |
| 46 | +- :py:class:`.datetime` objects returned in parsed messages are now always timezone-aware. |
| 47 | + Timestamps in messages without timezone info are interpreted as the local timezone, |
| 48 | + as this was the behavior in earlier versions. |
| 49 | + |
| 50 | + |
7 | 51 | 4.4
|
8 | 52 | ===
|
9 | 53 |
|
|
0 commit comments