GithubHelp home page GithubHelp logo

Comments (9)

davidbrochart avatar davidbrochart commented on July 26, 2024 1

0.4.3 is out.

from nbclient.

davidbrochart avatar davidbrochart commented on July 26, 2024

Did you try with master branch? If so, what does the exception say about info_msg['content']?

from nbclient.

chrisjsewell avatar chrisjsewell commented on July 26, 2024

No good point I should do that.
I messed around with it a load, and have tentatively got it to work, in this case, by removing a code cell.
If it is primarily a memory issue; the retrieval failing because of all the cell outputs now being held in memory, perhaps it would be helpful to put the language_info retrieval before the execution of the cells?

from nbclient.

davidbrochart avatar davidbrochart commented on July 26, 2024

Yes I think it doesn't hurt putting the language_info retrieval before the execution. But if we are out of memory after the execution, we're in pretty bad shape anyway.

from nbclient.

chrisjsewell avatar chrisjsewell commented on July 26, 2024

Yeh exactly, I don't know if there is a deeper underlying cause (like memory leakage), but I think that would at least be a band aid

from nbclient.

chrisjsewell avatar chrisjsewell commented on July 26, 2024

Thanks for merging 😄

FYI, I did just get an error from 0.4.2 on GH actions this time; https://github.com/executablebooks/jupyter-book/pull/911/checks?check_run_id=1035210652:

WARNING: /Users/runner/work/jupyter-book/jupyter-book/docs/file-types/notebooks.ipynb
Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/jupyter_cache/executors/basic.py", line 147, in execute
    None,
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/jupyter_cache/executors/basic.py", line 155, in execute_single
    nb_bundle.nb, cwd=cwd, timeout=timeout, allow_errors=allow_errors,
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/jupyter_cache/executors/utils.py", line 56, in single_nb_execution
    record_timing=False,
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/nbclient/client.py", line 1082, in execute
    return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/nbclient/util.py", line 74, in wrapped
    return just_run(coro(*args, **kwargs))
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/nbclient/util.py", line 53, in just_run
    return loop.run_until_complete(coro)
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
    return future.result()
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/nbclient/client.py", line 536, in async_execute
    'Content is:\n' + str(info_msg['content'])
RuntimeError: Kernel info received message content has no "language_info" key.Content is:
{'status': 'aborted'}

Could I be cheeky, and ask for a 0.4.3 release in the near future 😬

from nbclient.

davidbrochart avatar davidbrochart commented on July 26, 2024

Sure, will do today!

from nbclient.

chrisjsewell avatar chrisjsewell commented on July 26, 2024

Legend!

from nbclient.

davidbrochart avatar davidbrochart commented on July 26, 2024

0.5.0 is out, you should use it instead of 0.4.3, sorry!

from nbclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.