
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
ipykernel.kernelbase.kernel
as blueprint for the overall project structure, andpython-pexpect
for instrumenting the clang-repl>
prompt.clang-repl
using different C++ language standards/settings in a convenient way.clang-repl
is installed on the (backend) systemclang-repl
session..clang-repl
file in the users home directory, the defaults (if not .clang-repl
file is present) are listed below
[defaults]
repl = "clang-repl"
args = ["-std=c++20", "-ferror-limit=3", "-O1"]
includes = ["vector", "iostream"]
libs = []
timeout = 10
debug = false
clang-repl
session is alive
%status
: print kernel status%lib
: forward first line of cell directly to clang-repl
//
) if it starts with %
%main
: the cell content is wrapped and run via a unique global function, e.g. void mainUUID(){ ... }; mainUUID();
clang-repl
by always using a single line command realized via a indirection of, e.g. this form: #include /tmp/cell-e3tp24ne.repl
%undo
in the first line (and the incremental compile + execute was successful) the cell is "undone" via sending a subsequent %undo
directly to clang-repl
python -m venv .venv
source .venv/bin/activate
python -m pip install clang-repl
# demo notebook
jupyter notebook demo.ipynb
# new empty notebook
echo '{ "cells": [], "nbformat": 4, "nbformat_minor": 4, "metadata": {} }' > empty.ipynb
jupyter notebook --MultiKernelManager.default_kernel_name=clang_repl empty.ipynb
git clone https://github.com/pmanstet/clang_repl_kernel.git
cd clang_repl_kernel
# optional: use a fixed python version
# pyenv install 3.11.10
# ~/.pyenv/versions/3.11.10/bin/python -m venv .venv
python -m venv .venv
source .venv/bin/activate
python -m pip install -e .
jupyter kernelspec list
# interactive console
jupyter console --kernel clang_repl --debug
# demo notebook
jupyter notebook demo.ipynb
FAQs
IPython kernel forwarding C++ cells to clang-repl
We found that clang-repl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.