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
Users should be able to clone a notebook #781
Comments
We should definitely support this. I will add it to my list of todos. On Mon, Sep 12, 2011 at 6:40 AM, khinsen
Brian E. Granger |
Thanks, @ellisonbg, it's indeed a very valid request. Thanks for the feedback, Konrad! Glad to see you on github :) |
Once this works it might make sense to have a list of "templates" that area always visible - I always use the same preamble, importing numpy, scipy, and matplotlib, and switching to svg mode. |
@aarchiba, note that you can configure your mpl inline backend to always use the svg backend, and if you start the notebook with You can drop this: c = get_config() c.IPKernelApp.exec_lines = [ "from IPython.zmq.pylab import backend_inline", "cfg = backend_inline.InlineBackendConfig.instance()", "cfg.figure_format = 'svg'" ] into a file named alias ipnb='ipython notebook --pylab=inline' should take care of this part of the boilerplate. Not that your suggestion isn't valid in general, just providing an immediate solution for part of it. |
Note: the above can be written more cleanly with a regular multiline string: c = get_config() c.IPKernelApp.exec_lines = [""" from IPython.zmq.pylab import backend_inline cfg = backend_inline.InlineBackendConfig.instance() cfg.figure_format = 'svg' """ ] |
And just for the sake of completeness, as pointed out in #735, you can just do c.InlineBackendConfig.figure_format = 'svg' |
The problem with all of these is that I want my exported notebooks to be standalone - so that people can just grab the python code and run it in a plain interpreter, or in an ipython notebook of their own. If I move all sorts of setup into my config files, it lurks as a surprise for people trying to use my notebooks... SVG mode is obviously an exception, but it also seems like something there should be UI for... |
This is fixed in master |
It is rather cumbersome at the moment to create a new notebook whose contents are initialized to those of an existing notebook. Users may be tempted to just copy to the ipynb file, but this rapidly creates a mess because the name of a notebook is stored in the notebook itself and thus needs to be changed in the copy.
It would be nice to have a "Clone" operation in the "Actions" panel, next to "New".
The text was updated successfully, but these errors were encountered: