-
Notifications
You must be signed in to change notification settings - Fork 11
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
Question: a build system #13
Comments
That's an interesting suggestion. I was thinking that maybe it will be even better to somehow serve ipynb file locally instead of saving it (maybe already rendered as html) and asking the browser to reload it - that way it will be faster (I am using IPython Notebook over the ssh tunnel and it takes considerable time to open some large notebooks) and there will be less chance of accidentally overwriting it. Patches are of course welcome. |
So, if I understand your comment, one possible way to do this would be to write out a temporary (local) version of the notebook, use nbconvert to write static html, serve that , and then clean up the temporary ipynb and html when we are done? |
Yes, I think we can even put nbconvert into the plugin's source tree and Maxim Grechkin On Fri, Oct 11, 2013 at 12:20 PM, Spencer Lyon [email protected]:
|
Good idea. I'm experienced in python development, but not with sublime, so I might have some routine questions along the way. One of of which is: Do we need to make sure that IPython (and our local nbconvert) is available to Sublime's internal python? |
Yes. I think we can just put full IPython into external folder and import Maxim Grechkin On Fri, Oct 11, 2013 at 12:29 PM, Spencer Lyon [email protected]:
|
Sounds good. I'd say we might as well pull in IPython 1.0+ so that it has nbconvert included. Do you have a preference for anything else? |
No, overall idea sounds fine. We might want to look at something like I also think we can just consider ST2 support dropped - so you don't have For ST3, you will probably need to run 2to3 on ipython source code to Maxim Grechkin On Fri, Oct 11, 2013 at 12:52 PM, Spencer Lyon [email protected]:
|
Great, I'm on ST3 and everyone I know that uses sublime is also on it, so I think that should be fine. I believe that IPython supports python 3.X, you would just need to call Do you still see a need to run 2to3 on it? |
I think we used to have to run 2to3 several months ago (look at Maxim Grechkin On Fri, Oct 11, 2013 at 1:02 PM, Spencer Lyon [email protected]:
|
I've just submitted a pull request for package_control_channel, that will Maxim Grechkin On Fri, Oct 11, 2013 at 1:06 PM, Maxim Grechkin [email protected] wrote:
|
Sounds good. If i have some time, I'll make an attempt to implement for ST3 in the next day or two |
IPython now supports both Python 2 and 3 from single codebase: http://mail.scipy.org/pipermail/ipython-dev/2013-October/012551.html. So there is no need for 2to3 conversion, making this issue a little easier. |
Btw, new version of ST3 allows picture preview in separate tabs, this sounds like steps away from allowing pictures to be inserted into the document, and then we can replicate the whole IPython Notebook system |
That would be awesome. |
What if we have a sublime-build that would open the ipynb in the browser and reload that browser so we can see updated markdown/code results?
The text was updated successfully, but these errors were encountered: