Skip to content

Not compatible with jupyter-client >= 7.0.0 #165

Open
@phlummox

Description

@phlummox

This issue arises using the current version of Pweave (Pweave-0.30.3) and Python 3.6.9 on Ubuntu 18.04.6.

To reproduce:

$ python3.6 -m venv env && . ./env/bin/activate
$ echo > test.pmd
$ pweave --format=markdown test.pmd

Expected output

$ pweave --format=markdown test.pmd
status
Weaved test.pmd to test.md
$ cat -n test.md
     1	

Actual output

output follows:
status
Traceback (most recent call last):
  File "/home/user/test/env/bin/pweave", line 11, in <module>
    sys.exit(weave())
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/scripts.py", line 53, in weave
    pweave.weave(infile, **opts_dict)
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/__init__.py", line 59, in weave
    doc.weave()
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/pweb.py", line 192, in weave
    self.run()
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/pweb.py", line 127, in run
    self.wd
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/processors/jupyter.py", line 171, in __init__
    self.init_matplotlib()
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/processors/jupyter.py", line 174, in init_matplotlib
    self.loadstring(subsnippets.init_matplotlib)
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/processors/jupyter.py", line 134, in loadstring
    return self.run_cell(code_str)
  File "/home/user/test/env/lib/python3.6/site-packages/pweave/processors/jupyter.py", line 66, in run_cell
    msg = self.kc.get_shell_msg(timeout=timeout)
AttributeError: 'BlockingInProcessKernelClient' object has no attribute 'get_shell_msg'

Comments

Versions of jupyter-client from 6.1.5 through to 6.1.12 inclusive seem to work fine. (This can be tested by running e.g. pip install --upgrade Pweave 'jupyter-client==6.1.12'.)

Earlier than 6.1.0, I assume one runs into issue #151.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions