From 7f2de183301833db39f2665ee39b61436a4c2be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AD=E3=81=93=20=E7=99=BD=E3=81=84?= Date: Fri, 2 Feb 2024 07:27:50 +0700 Subject: [PATCH] Update version 1.0.0a7 --- jupyter-cpp-kernel/kernel.py | 7 +++++-- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/jupyter-cpp-kernel/kernel.py b/jupyter-cpp-kernel/kernel.py index 877f70f..94cf328 100644 --- a/jupyter-cpp-kernel/kernel.py +++ b/jupyter-cpp-kernel/kernel.py @@ -92,7 +92,7 @@ class CPPKernel(Kernel): 'file_extension': '.cpp' } - introduction = "C++ 14 kernel for Jupyter (master), version 1.0.0a6\n\n" + introduction = "C++ 14 kernel for Jupyter (master), version 1.0.0a7\n\n" cp_banner = "Copyright (C) 2024 shiroinekotfs\nCopyright (C) Brendan Rius\nCopyright (C) Free Software Foundation, Inc\n\n" links_guide = "Legal information: https://github.com/shiroinekotfs/jupyter-cpp-kernel/blob/master/LICENSE\nNotebook tutorial: https://github.com/shiroinekotfs/jupyter-cpp-kernel-doc\n\nAuthor GitHub profile: https://github.com/shiroinekotfs\n" reporting_links = "Reporting the issue: https://github.com/shiroinekotfs/jupyter-cpp-kernel/issues" @@ -136,7 +136,10 @@ def new_temp_file(self, **kwargs): return file def _write_to_stdout(self, contents): - contents = contents.replace("\r\n", "\r\n\r\n") + if os.name == 'nt': + contents = contents.replace("\r\n", "\r\n\r\n") + else: + contents = contents.replace("\n", "\n\n") self.send_response(self.iopub_socket, 'display_data', { diff --git a/setup.cfg b/setup.cfg index 78624dd..9b6fdfc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [metadata] description-file = README.md name = jupyter-cpp-kernel -version = 1.0.0a6 +version = 1.0.0a7 author = shiroinekotfs (ft. Brendan Rius) author_email = shiroineko.tfs@gmail.com description = C++ kernel for Jupyter. Easily adopt and deploy for testing environment. diff --git a/setup.py b/setup.py index 9dfa528..62d8885 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup setup(name='jupyter-cpp-kernel', - version='1.0.0a6', + version='1.0.0a7', description='C++ 14 kernel for Jupyter', author='shiroinekotfs', author_email='shiroineko.tfs@gmail.com',