-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[request] Offline version #8
Comments
Hi @vinniec I'll be quite busy until June. So, please, if you're interested on this just comment here after 31st May and I will try to check the possibilities to have an offline version. |
This issue can be closed, PythonTutor is no longer open-source apparently... |
NO I found a fork, https://github.com/seamile/PyTutor which seems very up-to-date! |
Hi @Naereen What would be the request here? I think the inclusion of pythontutor/pytutor/bottle is out of the scope of tutormagic. I don't see myself maintaining a pythontutor fork. If pythontutor is not available and maintained and pytutor is not up to date (e.g., I've tested the py36anaconda and it crashes) then there are few options. Please, let me know what are the needs to better understand them. |
Hi, I spent hours yesterday diving in PythonTutor v3/v5 front-end and v4 backends for other languages than Python, as my goal But on the other hand, I managed quite easily to use the mentioned PyTutor fork (and here s a fork to preserve it) on my own laptop, to have an offline "backup" version, that I can start with a one-liner-script if needed. I guess my only question now would be: how can I instruct (ideally I think I could try to extend |
I think it could be quite easy to add an option (e.g. The docs should be updated to point to the right direction to use this option:
(but the inclusion of a dependency like PythonTutor within |
Thanks for the instructions, I'll try this out! |
Yesterday I found your extension but following your advice I tried before nbtutor.
I mainly use jupyter-lab but nbtutor worked only in the classic version of jupyter (I think because jupyter-lab lacks the "cell toolbar"), so after I realized that in order not to break the interface I had to use
%%nbtutor -i
at the beginning of the code cell, I decided to try your extension.The first thing I liked to notice is that tutormagic also works in jupyter-lab as it is!
Then I looked for information and found that you can start quite simply python tutor offline, here are the steps:
sudo -H pip3 install bottle --upgrade
svn export https://github.com/pgbovine/OnlinePythonTutor/trunk/v5-unity pytut
(I used subversion to download the dir but you can simply download the entire repository and use only the "v5-unity" directory)cd pytut && python3 bottle_server.py
(can you try if all work visiting the page http://localhost:8003/visualize.html )url = protocol + "localhost:8003/iframe-embed.html#code="
And the magic is ready!
So my request is: please create an offline version including bottle as dependency (100kb) and the subdir v5-unity (25mb) and launch them when load your plugin with
%load_ext tutormagic
.The downside is that without any configuration the offline version works only for python, but you could include an "-o/--online" option to use the site instead of the offline version.
Please, please, please! pytutor is perfect in couple with jupyter! ♥
The text was updated successfully, but these errors were encountered: