Jupyter Notebook extension – find a code snippet for any class/function

137 views
Skip to first unread message

Jared Burgess

unread,
Dec 9, 2015, 12:44:49 PM12/9/15
to Project Jupyter

Hi all,


I’m very happy to announce the release of our Jupyter notebook code search extension. It allows you to quickly find information relating to a class, function, etc. The extension returns the class/function signature (including a link to the documentation) and an example code snippet from StackOverflow or the documentation.


Here’s a gif showing the extension in action:



To use it, in any code cell just type “library_name function_name”, and press alt + /. The search result will be printed in the cell's output area. Alternatively, you can select some text in the code cell and press the shortcut.


When you actually run the cell, the search result is overwritten with the output of your code.


Note:

  • The extension only works on Jupyter versions 4.x.

  • The extension currently only supports Python-related searches.


I’d love to hear your thoughts! This is an alpha version so any feedback is extremely valuable. Also, don’t hesitate to tell me if you’d like this to be available for older versions of the notebook and/or for other languages.


Thanks,

Jared


Brian Granger

unread,
Dec 9, 2015, 2:25:57 PM12/9/15
to Project Jupyter
Very cool! Thanks for sharing this!

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d5bc5573-f11c-463b-8e06-6bb61598317f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgra...@calpoly.edu and elli...@gmail.com
Reply all
Reply to author
Forward
0 new messages