
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
web-python-kernel
Advanced tools
A web-based Python kernel for browser environments with TypeScript support.
npm run playground
This will build the kernel and start the playground at http://localhost:8080/playground.html
# Build the kernel bundle
npm run build
# Start the development server
npm run serve
# Open http://localhost:8080/playground.html
The playground offers two modes:
The playground automatically falls back to Simple Mode if the kernel bundle is not available.
| Command | Description |
|---|---|
npm run playground | Build and start playground |
npm run build | Build kernel bundle |
npm run serve | Start development server |
npm run test | Run all tests (33 tests) |
npm run test:watch | Run tests in watch mode |
npm run clean | Clean build artifacts |
# Run all tests
npm test
# Expected output: 33/33 tests passing
# Tests cover: kernel functionality, manager features, streaming
web-python-kernel/
├── src/ # TypeScript source code
│ ├── manager.ts # Kernel manager
│ ├── index.ts # Main kernel implementation
│ ├── pypi/ # Python wheel files
│ └── ...
├── tests/ # Test files
│ ├── kernel_test.ts
│ ├── kernel_manager_test.ts
│ └── kernel_stream_test.ts
├── playground.html # Interactive playground
├── serve.js # Development server
└── package.json # Dependencies and scripts
# Basic Python
print("Hello, World!")
# Data processing
numbers = [1, 2, 3, 4, 5]
squared = [x**2 for x in numbers]
print(f"Squared: {squared}")
# Math operations
import math
print(f"π = {math.pi:.4f}")
# NumPy (if available)
import numpy as np
arr = np.array([1, 2, 3])
print(f"NumPy array: {arr}")
Your web-python-kernel playground is ready!
Quick start: Run npm run playground and open the URL in your browser.
Happy coding! 🐍✨
FAQs
A web-based Python kernel for browser environments with TypeScript support
The npm package web-python-kernel receives a total of 8 weekly downloads. As such, web-python-kernel popularity was classified as not popular.
We found that web-python-kernel 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.