quarto-dev / quarto-dev/quarto

Bug? Problems in VSCode when running multiprocessing

Open
#206 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

  • When running code in a python block that calls multiprocessing, the jupyter kernel hits a set of errors related to invalid syntax
  • I am not sure if its a config issue or a fundamental limitation of multiprocessing but if possible, it would be nice to address.

QMD below --------------------------------------------------


title: "multitest"

Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.


from multiprocessing import Pool


def f(x):
    return x * x


with Pool(2) as p:
    p.map(f, range(100))

Screen Shot 2023-06-19 at 8 08 55 PM

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the embedded QMD example in VSCode, starting with the Python block that uses multiprocessing.Pool and the reported Jupyter kernel syntax errors. Compare the behavior with and without multiprocessing to determine whether configuration or a limitation is involved. Done means the example runs without the reported errors, or the limitation and required configuration are clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.