Repository navigation
Add shared R and Python Jupyter execution through reticulate - #179
Draft
t-kalinowski wants to merge 4 commits into
Draft
t-kalinowski wants to merge 4 commits into
t-kalinowski wants to merge 4 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds R and Python execution in the same ark process, building on the local Jupyter worker in #178. This draft targets
feat/jupyter-kernels, so its diff contains the reticulate integration rather than repeating the underlying kernel support.--jupyter-reticulateexposesrandpythonalongside nativecode. Python runs through published reticulate, with shared objects and R/Python callbacks.--jupyter-reticulate-ipykernelflag starts an ipykernel endpoint inside the R process. It supplies Python expression results, rich displays, Matplotlib output, tracebacks, prompted input, and top-levelawaitwhile preserving the shared namespace.This uses published ark, ipykernel, and reticulate without modifying their repositories or requiring Positron. The shared endpoint remains experimental: its asyncio loop advances only during Python cells, native blocking calls can delay interruption, both languages share one failure domain, and native descriptor output can interleave. The guide documents these limits, ipykernel compatibility hooks, missing built-in features, and installation costs. The benchmarks show higher dispatch and memory costs than the built-in worker for the measured trivial cells; their original provenance is retained.
Local feature validation passed 15 focused public cases (16 executions) on macOS, including shared reticulate/ipykernel execution, the macOS sandbox, CLI validation, and the replacement-startup regression. These checks used ark 0.1.252, ipykernel 7.4.0, and published reticulate 1.47.0.
scripts/formatandscripts/checkpassed. The inherited Jupyter documentation repair passed all 36 website checks on the base branch. Native Windows and a fresh Linux run were not validated locally for this update. The original benchmark files retain their original revisions and platform provenance.The hosted Unix runners capability-skip the optional Jupyter execution cases when kernel dependencies are not configured; those runs do not establish kernel execution coverage. The Windows runner reports MXC unavailable, so native sandbox execution remains unverified. Documentation deployment is intentionally skipped for pull requests.
The inherited transcript collectors preserve exact completion markers for combined control and source calls, including
code, across split responses. The reticulate feature diff against #178 is unchanged. For this collector update, the native R startup gate and plain ipykernel interrupt/restart case passed on macOS. The shared ipykernel interrupt/restart and simple reticulate process/state cases passed with published ipykernel 7.4.0 and CRAN reticulate 1.47.0 (four distinct cases in total).scripts/format,git diff --check, andscripts/checkpassed. Current-head hosted checks remain pending; Linux and Windows were not rerun locally for this repair.