Skip to main content

IPython kernels for teaching and learning C/C++ in a Jupyter notebook, providing C/C++ syntax highlighting and a little more magic.

Project description

c-kernel

IPython kernels for teaching and learning C/C++ in a Jupyter notebook, providing C/C++ syntax highlighting, automatic compilation and a little more magic.

AsyncKernel

This kernel (an extension of the default IPython kernel) provides the ability to execute shell commands embedded in comments when the cell contents are saved using the %%file cell magic:

AutoCompileKernel

Automatically compile cells into object files or executables using the name given on the cell's first line:

Specify options in comments using //%:

Compose simple multi-file projects in a single notebook:

Installation

To install from git:

git clone git@github.com:adamtuft/c-kernel.git
python3 -m pip install ./c-kernel

Then, install the kernel(s), giving it a name and a display name of your choice. For example, to install AutoCompileKernel using clang and clang++ as the default compilers, run:

ckernel install AutoCompileKernel autocompile-clang "Auto-compile C/C++ (clang)" --user --cc clang --cxx clang++

This kernel will then be available under the name "Auto-compile C/C++ (clang)" in Jupyter:

See ckernel install --help for all options.

License

Licensed under the BSD 3-Clause License (see the license file).

Copyright (c) 2023, Adam Tuft

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckernel-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckernel-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file ckernel-0.1.1.tar.gz.

File metadata

  • Download URL: ckernel-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ckernel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4392e00a45afdab7111c5a4caad7bcc7f395b6b072e2d8d3ce89cacadd7a443a
MD5 5a3265659eceb3846faf32704c2b8062
BLAKE2b-256 098047e53752081e8b6e8f6a007ab5e3aa6c906c1bb39766887d4bf288e990eb

See more details on using hashes here.

File details

Details for the file ckernel-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ckernel-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ckernel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b759d4f4c5c0274074ba90b7652e7e92a922b18dab0cd9b045edbbd6bd53004
MD5 1ac61bd382dcbf33c0ec08c25fb44a56
BLAKE2b-256 25342da033b220322c2c241ef733e33eb55c9a2d26dbe8edf1e9b9e34b340d81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page