Coder Social home page Coder Social logo

async-ipython-magic's People

Contributors

dependabot[bot] avatar leriomaggio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

stjordanis

async-ipython-magic's Issues

Python 3 Import Errors

After git clone ... && cd async-ipython-magic/, Python 3 complains about the relative imports.

$ python async_run_magic.py
Traceback (most recent call last):
  File "async_run_magic.py", line 26, in <module>
    from .settings import JS_ROLE, PY_ROLE, EXEC_OUTPUT
SystemError: Parent module '' not loaded, cannot perform relative import

I should be able to fix it.

Any chance you can make this work modern tornado (>=6.2)

I stumbled across this and I think this could be a huge step forward for many things in Jupyter. Specifically the framework to allow OTHER magic functions to operate with async io and do things like submit queries to remote servers without blocking. I want to get into understanding things, but it appears some of the ways you call IOloop are deprecated. Any chance you can take a look at things and it working with Tornado 6.2.

From there I want to start learning how things work and I will obviously share back what I do! Thank

UnicodeDecodeError on %%async_run

Hi,

I tried to play with this and got the error.
The notebook is the one from the examples.

After executing

%%async_run 
N = 10**s
print(N)

the error appeared in the console.

ERROR:tornado.application:Uncaught exception in /ws/PYTHON---9c4c6b81-49b3-4977-9093-b04f5bbf3328
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/websocket.py", line 412, in _run_callback
    callback(*args, **kwargs)
  File "/Users/sergey/.ipython/profile_default/startup/run_async/run_server.py", line 181, in on_message
    data = json.loads(message)
  File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 349, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

I used Jupyter Notebook 5.0.0 on Python 3.6 on MacOS

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.