leriomaggio / async-ipython-magic Goto Github PK
View Code? Open in Web Editor NEWAsync IPython Magic for Asynchronous Notebook Cell Execution
License: MIT License
Async IPython Magic for Asynchronous Notebook Cell Execution
License: MIT License
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.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.