Skip to content

Commit 26b3920

Browse files
Merge pull request #25 from shiroinekotfs/1.0.0a6.hotfix
Update version 1.0.0a7
2 parents dd2abb9 + 7f2de18 commit 26b3920

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

jupyter-cpp-kernel/kernel.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class CPPKernel(Kernel):
9292
'file_extension': '.cpp'
9393
}
9494

95-
introduction = "C++ 14 kernel for Jupyter (master), version 1.0.0a6\n\n"
95+
introduction = "C++ 14 kernel for Jupyter (master), version 1.0.0a7\n\n"
9696
cp_banner = "Copyright (C) 2024 shiroinekotfs\nCopyright (C) Brendan Rius\nCopyright (C) Free Software Foundation, Inc\n\n"
9797
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"
9898
reporting_links = "Reporting the issue: https://github.com/shiroinekotfs/jupyter-cpp-kernel/issues"
@@ -136,7 +136,10 @@ def new_temp_file(self, **kwargs):
136136
return file
137137

138138
def _write_to_stdout(self, contents):
139-
contents = contents.replace("\r\n", "\r\n\r\n")
139+
if os.name == 'nt':
140+
contents = contents.replace("\r\n", "\r\n\r\n")
141+
else:
142+
contents = contents.replace("\n", "\n\n")
140143
self.send_response(self.iopub_socket,
141144
'display_data',
142145
{

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
description-file = README.md
33
name = jupyter-cpp-kernel
4-
version = 1.0.0a6
4+
version = 1.0.0a7
55
author = shiroinekotfs (ft. Brendan Rius)
66
author_email = [email protected]
77
description = C++ kernel for Jupyter. Easily adopt and deploy for testing environment.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name='jupyter-cpp-kernel',
4-
version='1.0.0a6',
4+
version='1.0.0a7',
55
description='C++ 14 kernel for Jupyter',
66
author='shiroinekotfs',
77
author_email='[email protected]',

0 commit comments

Comments
 (0)