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
notebook -- worksheet should call sys.path.append(DATA) when being initalized #3844
Comments
comment:1
Attachment: sage-3844.patch.gz |
comment:2
When I attached hi.py, "import hi" didn't work. Also on http://sage.math.washington.edu:8999/home/admin/3/datafile?name=hi.py, there is no mention of this new functionality. |
comment:3
I've attached a totally new patch that is 1-line, works, and does the right thing, and is imho quite nice. I still don't have my computer setup for Selenium, but a test this works is to do this in the notebook:
|
Attachment: sagenb_3844.patch.gz apply only this -- ignore the old sage-3844.patch |
comment:4
I've come across the same problem as TimothyClemans -- importing it after attachment does not work. Also, it would probably be best to advertise the functionality on the data page, as TimothyClemans stated. |
Attachment: trac_3844-DATA_in_sys_path.2.patch.gz Updates |
comment:5
This works for me -- After I upload a data file Positive review. V2 just adds the changes to A By the way, FF 3.6 will permit drag-and-drop file uploads. See this blog post for a video and simple demo. |
Author: William Stein |
Reviewer: Mitesh Patel |
Attachment: trac_3844-DATA_in_sys_path.3.patch.gz Rebased for SageNB 0.6 + queue in comment. Replaces previous. |
Merged: sagenb-0.7 |
comment:8
V3 is rebased for this queue:
Patch versions may be off by one. |
If we do the above then one can upload/attach a .py file and import it in the worksheet, which is really sweet.
Component: notebook
Author: William Stein
Reviewer: Mitesh Patel
Merged: sagenb-0.7
Issue created by migration from https://trac.sagemath.org/ticket/3844
The text was updated successfully, but these errors were encountered: