jupyter-cpp-kernel

C++ kernel for Jupyter. Easily adopt and deploy for testing environment.

MIT License

Downloads
655
Stars
15

Bot releases are hidden (Show)

jupyter-cpp-kernel - 1.0.0a7 Latest Release

Published by shiroinekotfs 9 months ago

What's Changed

Full Changelog: https://github.com/shiroinekotfs/jupyter-cpp-kernel/compare/1.0.0a6...1.0.0a7

TL;DR

What's new?

Requirements (pre-install)

Windows

You have to install GNU Compiler Collection for Windows before doing any additional installation

Linux/macOS

You have to install GNU Compiler Collection that is compatible with your OS. You may need to go search for yourself.

How to install/upgrade?

Windows

python -m pip install --upgrade jupyter-cpp-kernel

Linux/macOS

sudo pip install --upgrade jupyter-cpp-kernel
# Or
pip install --upgrade jupyter-cpp-kernel
jupyter-cpp-kernel - 1.0.0a6

Published by shiroinekotfs 9 months ago

By created PRs

Full Changelog: https://github.com/shiroinekotfs/jupyter-cpp-kernel/compare/1.0.0a5...1.0.0a6

TL;DR

What's new?

  1. C++ w/ multi-threading (in #21)
  2. text/markdown bug with multiple lines in C++ (in #18)
  3. application/pdf in displaying PDF files (both local and PDF over the Internet)
  4. Removed unnecessary Python modules
  5. Update math and metric prefix

Requirements (pre-install)

Windows

You have to install GNU Compiler Collection for Windows before doing any additional installation

Linux/macOS

You have to install GNU Compiler Collection that is compatible with your OS. You may need to go search for yourself.

How to install/upgrade?

Windows

python -m pip install --upgrade jupyter-cpp-kernel

Linux/macOS

sudo pip install --upgrade jupyter-cpp-kernel
# Or
pip install --upgrade jupyter-cpp-kernel
jupyter-cpp-kernel - 1.0.0a5

Published by shiroinekotfs 11 months ago

By created PRs

Full Changelog: https://github.com/shiroinekotfs/jupyter-cpp-kernel/compare/1.0.0a4...1.0.0a5

TL;DR

From now on, @takinekotfs is no longer active since she gave away his GitHub account and moved to the dark web.

That means @shiroinekotfs will take control of this project, leaving @takinekotfs behind.

What's new?

  1. The new C++ kernel has fixed the ReDoS security error raised in #13
  2. Removed unnecessary headers, minimal the number of attack interfaces.
  3. From version 1.0.0a5, this kernel supports external headers from non-inbound source.
    That means you can create your own C++ header using this template, then publish it to the PyPI to let anyone install it (Yes, installing C++ header from PyPI is crazy, but it exists).

Requirements (pre-install)

Windows

You have to install GNU Compiler Collection for Windows before doing any additional installation

Linux/macOS

You have to install GNU Compiler Collection that is compatible with your OS. You may need to go search for yourself.

How to install/upgrade?

Windows

python -m pip install --upgrade jupyter-cpp-kernel

Linux/macOS

sudo pip install --upgrade jupyter-cpp-kernel
# Or
pip install --upgrade jupyter-cpp-kernel
jupyter-cpp-kernel - 1.0.0a4

Published by takinekotfs about 1 year ago

Full Changelog: https://github.com/takinekotfs/jupyter-cpp-kernel/compare/1.0.0a3...1.0.0a4

TL;DR

What's new?

  1. Compiling on Windows is now NO LONGER separate from the macOS/Linux compiling method
  2. C++ kernel for Jupyter is now widely supported on beauty outputs, using text/markdown as the default result output
    • This doesn't mean that the execution errors are displayed in text/markdown. This method is only used for successful execution.
    • Ignored all compiling warnings. This is unnecessary.
    • Changed package name in local Python3 site packages to jupyter-cpp-kernel
    • Full credits supported. In the kernel start-up, you'll see this message
    • Help links are now accessible from the Help header (in both Jupyter Notebook and Jupyter Lab)
  3. User input/output
    • User now can use cin and getline to input the variable.
    • As mentioned earlier, the result now uses text/markdown for the beauty outputs. You can also use the pre-defined output C++ header for Jupyter (I called it the Jupyter Display Handler) to replace the Markdown displayed method, including IFrame, Audio, CodeString, Image, PDF, Video, and YouTube player. You can see it here. You can see how I use the beauty outputs for playing a YouTube video.

image

  1. From now on, extended C++ headers are supported. See the list of headers that are already implemented into your code.

Solved old bugs

Solved typo errors that made display mistakes in the version 1.0.0a3

Requirements (pre-install)

Windows

You have to install GNU Compiler Collection for Windows before doing any additional installation

Linux/macOS

You have to install GNU Compiler Collection that is compatible with your OS. You may need to go search for yourself.

How to install/upgrade?

Windows

python -m pip install --upgrade jupyter-cpp-kernel

Linux/macOS

sudo pip install --upgrade jupyter-cpp-kernel
# Or
pip install --upgrade jupyter-cpp-kernel
jupyter-cpp-kernel - 1.0.0a3

Published by takinekotfs about 1 year ago

Full change log: https://github.com/takinekotfs/jupyter-cpp-kernel/commit/a43b0e19d9c5bba2144adb9518d3696775aae870

What's new?

  • C++ kernel for Jupyter supports Windows
  • Remove install_cpp_jupyter. From now on, the kernel specification will install automatically
  • Added C++ logo for Jupyter

Solved old bugs

The version 1.0.0a2 is the perfect one.

However, this release doesn't support Windows, so this release solve that.

Requirement for Windows

You have to install GNU Compiler Collection for Windows before doing any additional installation

How to install/upgrade this release?

On PyPI, using --upgrade

sudo pip install --upgrade jupyter-cpp-kernel
# Or
pip install --upgrade jupyter-cpp-kernel

install_cpp_kernel --user

On Windows, for the first time

python -m pip install jupyter-cpp-kernel
jupyter-cpp-kernel - GNU Compiler Collection for Windows 13.2.0

Published by takinekotfs about 1 year ago

GCC for Windows was downloaded from https://github.com/niXman/mingw-builds/

Demonstration

This is NOT a standard release for any version of C++ kernel for Jupyter.

GNU Compiler Collection for Windows 13.2.0 is just an extension for supporting the C++ kernel for Jupyter on Microsoft Windows.

Supporting

  • GCCx86.msi is for the 32-bit version of Windows
  • GCCx64.msi is for the 64-bit version of Windows
jupyter-cpp-kernel - 1.0.0a2

Published by takinekotfs over 1 year ago

What's new?

  • Removed the mapped stdio.h and remapped the master.cpp
  • Ignore the unused variables and parameters

Solved old bugs

  • Cannot run C++ on jupyter-cpp-kernel: #1

  • Remove unused kernel metadata

  • Cleared g++ --version on start and introduction

How to install/upgrade this release?

On PyPI, using --upgrade

sudo pip install --upgrade jupyter-cpp-kernel
# Or
pip install --upgrade jupyter-cpp-kernel

install_cpp_kernel --user
jupyter-cpp-kernel - Initial Release for C++ Jupyter kernel

Published by takinekotfs over 1 year ago

Full Changelog: see all commits here

You can download and install the public packages from PyPI