include IPython Notebook in my stackoverflow post - stack-overflow

I can add code using the blockquotes in Stackoverflow, but it is also possible to include or embed my IPython notebook into my post on stackoverflow? Since in some cases it is much clearer

This is the best solution I found in addition to nbviewer:
https://www.wakari.io/sharing/bundle/hrojas/How%20to%20plot%20selective%20data%20from%20a%20text%20file

Related

Is it possible to copy comments and suggestions when copying a Google Doc using Drive API?

I noticed that comments and suggestions are not by default copied when using drive.files.copy. This is imperative to my project, so I did some googling and it seems like this feature may not even exist? I thought about copying and applying the comments manually using the Docs API, but I can't seem to find anything helpful about this on SO or the Google API documentation for Drive and Docs. Does anyone know if this is possible and how to do this?
Thanks
edit: the comments.list method returns comments, but not suggestions. I think I would be able to insert these comments manually into the copied document. What about suggestions? Is there a way to retrieve these?
It would be really nice if I could easily copy both without a lot of leg work.
Unfortunately it's not possible to copy a Google Docs file with comments and suggestions
As for comments, you can copy-paste them manually like done here.
However, suggestions are different from comments (at least as the Google APIs go) - see here for information.
In order to retrieve suggestions, you can use the documents.get method
Yet, inserting suggestions programmatically is currently not possible - see here for more details

OpenMDAO: First Steps

I am new in the world of OpenMDAO (and also on Python) and I am having some problems to understand the use of the software. I have already installed Anaconda (pyth v2.7) and the OpenMDAO, but I don't know how to run it. I am following this tutorial but I am not sure if I am doing it properly. I write the .py files in notepad++, and I try to run on the IPython but when I use the command : from paraboloid import Paraboloid it appears an error : No module named.api. I think that maybe I am not using the correct path (I'm in the folder where I have the .py files). Probably it's an stupid error, so sorry for the question.
Thank you all, Jose M O
If your tutorial link above is correct, I see that you are using a tutorial for OpenMDAO 0.1.0. That version is 5.5 years old at this time, and is no longer supported. We will be happy to help with your questions, but to get a better foundation, and a much more useful tool, please consider:
Install OpenMDAO 1.5.0 (pip install openmdao or read these installation docs)
Try this paraboloid tutorial instead.
Good luck,
Keith
NOTE: If you installed OpenMDAO 1.x.x and are using the tutorial from 0.1.0, you would have many problems with api imports, as many things have changed since 0.1.0.

Silverstripe - How to Allow Comments For A Blog Entry

I'm setting up my first ever site in Silverstripe and I'm having trouble with the silverstripe blog module (https://github.com/silverstripe/silverstripe-blog/tree/0.3). I've installed it and the two supporting modules comments (https://github.com/silverstripe/silverstripe-comments) and grid-field-bulk-editing tools and they all seem to have installed without incident. Finally, I've checked the box in the setting for my blog holder and my first test blog post to allow comments. However, when I go to that test blog post I see no way for a reader to post any comments. What did I miss?
Thanks in advance for any help anyone can provide!
I deleted the module, then re-installed it with composer as wmk suggested and it seems to work now. Thanks!

Sort articles by most commented using disqus

I'm using disqus for my MODx blog commenting system, but couldn't find anywhere a way to sort my articles based on the most commented one, or the most recent comments.
I see that there are already many questions similar to this so any help will be much appreciated us.
An article describing how to do it using Ditto/jot, it shouldn't be too difficult to modify it to work with disqus.

BlogEngine.Net Code Formatting Extension that works?

For months now I've been trying to find a code syntax formatting extension that works for BlogEngine.Net. I'm not fond of the behavior of the default formatting extension, and have tried a couple of others (manoli is among them), but they always seem to interact badly with the TinyMCE editor. Does anyone know of an extension that works, or a different approach that will allow me to make code samples pretty on my blog without hacking the crap out of the HTML myself?
Thanks.
I would try using Windows Live Writer along w/ the Paste From Visual Studio plugin. One you go WLW, you'll never go back to that damn TinyMCE interface.
WLW here:
http://get.live.com/writer/overview
Plugin here:
http://gallery.live.com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&l=8
Thanks, Rafe. Thanks to this post that Hanselman put up the day after I asked the question, I downloaded WLW and am now using it. As far as getting prettily formatted code, I'm using cut-and-paste from a little tool developed and available on manoli.net.
Check out SyntaxHighlighter.. Works excellent. For easy integration into BlogEngine have a look at my blog post.

Resources