question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

shell message.content.payload is ignored (causing IRkernel ?foo/help(foo) to return no result)

See original GitHub issue

I’m seeing a funny behavior with IRkernel where ?foo / help(foo) doesn’t return a result. (Convo moved in from https://nteract.slack.com/archives/C4S4H8DN1/p1525387222000158.)

I think the root of the problem is:

{
  "idents": [],
  "header": {...},
  "parent_header": {...},
  "metadata": {},
  "content": {
    "status": "ok",
    "execution_count": 2,
    "payload": [
      {
        "source": "page",
        "data": {
          "text/html": "No documentation for 'foo' in specified packages and libraries:\nyou could try '??foo'",
          "text/latex": "No documentation for 'foo' in specified packages and libraries:\nyou could try '??foo'",
          "text/plain": "No documentation for 'foo' in specified packages and libraries:\nyou could try '??foo'"
        },
        "metadata": {}
      }
    ],
    "user_expressions": {}
  },
  "buffers": []
}

But jupyter console does manage to find the payload from the ‘shell’ channel, somehow:

$ jupyter console --kernel=ir

In [1]: ?foo
No documentation for 'foo' in specified packages and libraries:
you could try '??foo'

In [2]: help(foo)
No documentation for 'foo' in specified packages and libraries:
you could try '??foo'

Versions:

  • Hydrogen 2.4.1
  • IRkernel 0.8.11

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
n-riescocommented, May 4, 2018

Just for the record, payloads are deprecated.

0reactions
kylebarroncommented, Sep 16, 2018

If payloads are deprecated, couldn’t irkernel switch the messages from payload to display_data or stream?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found