From takowl at gmail.com Sun Feb 1 13:15:27 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sun, 1 Feb 2015 10:15:27 -0800 Subject: [IPython-dev] Two basic Notebook questions (Python focus) In-Reply-To: References: Message-ID: On 31 January 2015 at 19:41, Jean Bigboute wrote: > [TerminalIPythonApp] WARNING | Error in loading extension: kernmagic > Check your config files in /{PATH}/.ipython/profile_default > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > /{PATH}/anaconda/lib/python2.7/site-packages/IPython/core/extensions.pyc > in load_extension(self, module_str) > 96 if module_str not in sys.modules: > 97 with > prepended_to_syspath(self.ipython_extension_dir): > ---> 98 __import__(module_str) > 99 mod = sys.modules[module_str] > 100 if self._call_load_ipython_extension(mod): > > ImportError: No module named kernmagic > This error message looks very much like your config specifies the kernmagic extension, and that's not installed. That should be orthogonal to your problem, however. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeanbigboute at gmail.com Mon Feb 2 12:25:10 2015 From: jeanbigboute at gmail.com (Jean Bigboute) Date: Mon, 2 Feb 2015 09:25:10 -0800 Subject: [IPython-dev] IPython-dev Digest, Vol 133, Issue 1 In-Reply-To: References: Message-ID: [ deletia ] Thomas's solution worked on both Anaconda and Enthought Canopy for Windows. A fresh installation of Anaconda fixed the kernmagic problem on the Mac. A couple of minor tweaks were needed to the code itself to get it to go on all three. I think I didn't understand the error messages generated when the code loaded. import inspect def source(func): print inspect.getsource(func) does the job via the startup file. Thanks for the advice. JBB > Message: 4 > Date: Sat, 31 Jan 2015 19:41:41 -0800 > From: Jean Bigboute > Subject: Re: [IPython-dev] Two basic Notebook questions (Python focus) > To: ipython-dev at scipy.org > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On Sat, Jan 31, 2015 at 10:00 AM, wrote: > >> >> Message: 4 >> Date: Fri, 30 Jan 2015 15:48:59 -0800 >> From: Thomas Kluyver >> Subject: Re: [IPython-dev] Two basic Notebook questions (Python focus) > >> On 30 January 2015 at 15:26, Jean Bigboute wrote: >> >>> b) Is it possible to pass arguments to a magic function? >>> e.g. >>> import inspect >>> print inspect.getsource(function) >>> >> >> This is probably easiest to do in a plain Python function. Create a file >> ~/.ipython/profile_default/startup/printsource.py (which IPython will >> automatically run when it starts, and put in it: >> >> import inspect >> def source(func) >> print inspect.getsource(function) >> >> Now you can just type 'source(f)' to see a function in your notebook. Be >> aware, though, that if you share that notebook, other people won't have the >> source() function defined. You could also define it at the top of the >> notebook if you prefer. >> >> Thomas >> > From mark.voorhies at ucsf.edu Mon Feb 2 14:11:37 2015 From: mark.voorhies at ucsf.edu (Mark Voorhies) Date: Mon, 2 Feb 2015 11:11:37 -0800 Subject: [IPython-dev] Concise citations for the Scipy stack Message-ID: <54CFCBE9.5030506@ucsf.edu> I'm putting together a set of "software tools" references for a paper that we are preparing to submit. I am trying to balance acknowledging as much of our infrastructure as possible, while minimizing the number of references that have no direct (i.e., unambiguously obvious to the reader) connection to the methods section of the paper (e.g., citing Tornado, git, h5py, or MySQL is probably going too far; likewise, I think it's reasonable to cite R but not rpy2). Based on http://www.scipy.org/citing.html, I think a good minimal set (for a paper with heavy use of IPython for matplotlib-based plotting, including KDEs from scipy.stats, and a lot of vanilla python sequence/expression analysis code) is: NumPy & SciPy St?fan van der Walt, S. Chris Colbert and Ga?l Varoquaux. The NumPy Array: A Structure for Efficient Numerical Computation, Computing in Science & Engineering, 13, 22-30 (2011), DOI:10.1109/MCSE.2011.37 Matplotlib John D. Hunter. Matplotlib: A 2D Graphics Environment, Computing in Science & Engineering, 9, 90-95 (2007), DOI:10.1109/MCSE.2007.55 IPython Fernando P?rez and Brian E. Granger. IPython: A System for Interactive Scientific Computing, Computing in Science & Engineering, 9, 21-29 (2007), DOI:10.1109/MCSE.2007.53 Thoughts? --Mark From wes.turner at gmail.com Mon Feb 2 14:33:13 2015 From: wes.turner at gmail.com (Wes Turner) Date: Mon, 2 Feb 2015 13:33:13 -0600 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: References: <54CFCBE9.5030506@ucsf.edu> Message-ID: There sem to varying definitions of "Scipy Stack" http://www.scipy.org/stackspec.html https://registry.hub.docker.com/u/ipython/scipystack/dockerfile/ https://github.com/ipython/docker-notebook/tree/master/scipystack http://docs.continuum.io/anaconda/pkg-docs.html ... http://westurner.github.io/tools/#scipy-stack On Feb 2, 2015 1:11 PM, "Mark Voorhies" wrote: I'm putting together a set of "software tools" references for a paper that we are preparing to submit. I am trying to balance acknowledging as much of our infrastructure as possible, while minimizing the number of references that have no direct (i.e., unambiguously obvious to the reader) connection to the methods section of the paper (e.g., citing Tornado, git, h5py, or MySQL is probably going too far; likewise, I think it's reasonable to cite R but not rpy2). Based on http://www.scipy.org/citing.html, I think a good minimal set (for a paper with heavy use of IPython for matplotlib-based plotting, including KDEs from scipy.stats, and a lot of vanilla python sequence/expression analysis code) is: NumPy & SciPy St?fan van der Walt, S. Chris Colbert and Ga?l Varoquaux. The NumPy Array: A Structure for Efficient Numerical Computation, Computing in Science & Engineering, 13, 22-30 (2011), DOI:10.1109/MCSE.2011.37 Matplotlib John D. Hunter. Matplotlib: A 2D Graphics Environment, Computing in Science & Engineering, 9, 90-95 (2007), DOI:10.1109/MCSE.2007.55 IPython Fernando P?rez and Brian E. Granger. IPython: A System for Interactive Scientific Computing, Computing in Science & Engineering, 9, 21-29 (2007), DOI:10.1109/MCSE.2007.53 Thoughts? --Mark _______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron at ahmadia.net Mon Feb 2 14:50:15 2015 From: aron at ahmadia.net (Aron Ahmadia) Date: Mon, 2 Feb 2015 14:50:15 -0500 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: <54CFCBE9.5030506@ucsf.edu> References: <54CFCBE9.5030506@ucsf.edu> Message-ID: On Mon, Feb 2, 2015 at 2:11 PM, Mark Voorhies wrote: > I'm putting together a set of "software tools" references for a paper that > we are preparing to submit. > I am trying to balance acknowledging as much of our infrastructure as > possible, while minimizing the > number of references that have no direct (i.e., unambiguously obvious to > the reader) connection to the > methods section of the paper (e.g., citing Tornado, git, h5py, or MySQL is > probably going too far; likewise, > I think it's reasonable to cite R but not rpy2). > > Based on http://www.scipy.org/citing.html, I think a good minimal set > (for a paper with heavy use of > IPython for matplotlib-based plotting, including KDEs from scipy.stats, > and a lot of vanilla python > sequence/expression analysis code) is: > > NumPy & SciPy > St?fan van der Walt, S. Chris Colbert and Ga?l Varoquaux. The NumPy Array: > A Structure for Efficient Numerical Computation, Computing in Science & > Engineering, 13, 22-30 (2011), DOI:10.1109/MCSE.2011.37 > > Matplotlib > John D. Hunter. Matplotlib: A 2D Graphics Environment, Computing in > Science & Engineering, 9, 90-95 (2007), DOI:10.1109/MCSE.2007.55 > > IPython > Fernando P?rez and Brian E. Granger. IPython: A System for Interactive > Scientific Computing, Computing in Science & Engineering, 9, 21-29 (2007), > DOI:10.1109/MCSE.2007.53 > > Thoughts? > > --Mark > Hi Mark, As I'm guessing you know, there are a number of reasons to cite academic software. I think first and foremost, you have a responsibility to acknowledge contributions that were not your own. Secondly, you also have a responsibility to improve the credibility of your work by enabling others to reproduce your analysis. I agree that you should cite any software package that implements algorithms you use for your work, as well as any environments that are "transformational." If you would like others to be able to reuse or reproduce your work, it is also important to identify the specific versions of software that you used. In this case, I argue that you should cite an identifier (such as release tag or git commit) as well as a URL for obtaining that software. The advantage of citing Git commits/tags in particular is that they also contain complete records tracking authorship. So my specific advice here would be to cite any papers that you found helpful or were requested by the authors, but that you also provide a description of the major components of the software environment (Python libraries, sub-libraries such as HDF5) you used. Regards, Aron -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Mon Feb 2 16:06:14 2015 From: wes.turner at gmail.com (Wes Turner) Date: Mon, 2 Feb 2015 15:06:14 -0600 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: References: <54CFCBE9.5030506@ucsf.edu> Message-ID: On Mon, Feb 2, 2015 at 1:50 PM, Aron Ahmadia wrote: > [...] > > > Hi Mark, > > As I'm guessing you know, there are a number of reasons to cite academic > software. I think first and foremost, you have a responsibility to > acknowledge contributions that were not your own. Secondly, you also have > a responsibility to improve the credibility of your work by enabling others > to reproduce your analysis. I agree that you should cite any software > package that implements algorithms you use for your work, as well as any > environments that are "transformational." If you would like others to be > able to reuse or reproduce your work, it is also important to identify the > specific versions of software that you used. In this case, I argue that > you should cite an identifier (such as release tag or git commit) as well > as a URL for obtaining that software. > > The advantage of citing Git commits/tags in particular is that they also > contain complete records tracking authorship. > > http://figshare.com and https://zenodo.org/ (CERN) allow authors to generate archives and citable DOIs for specific revisions of [GitHub] repositories. https://en.wikipedia.org/wiki/BibTeX could also be useful. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron at ahmadia.net Mon Feb 2 16:11:33 2015 From: aron at ahmadia.net (Aron Ahmadia) Date: Mon, 2 Feb 2015 16:11:33 -0500 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: References: <54CFCBE9.5030506@ucsf.edu> Message-ID: On Mon, Feb 2, 2015 at 4:06 PM, Wes Turner wrote: > > http://figshare.com and https://zenodo.org/ (CERN) allow authors to > generate archives and citable DOIs for specific revisions of [GitHub] > repositories. > Agreed. I don't see a problem with citing the Git commit itself, as Git commits are just as useful for provenance/reproducibility as DOIs, and both of the services you list above require you to license your code to them (if you are depositing the code, as opposed to just providing a Stodden-style compendium). Figshare, the last time I checked, required CC BY licenses, which aren't particularly code compatible. A -------------- next part -------------- An HTML attachment was scrubbed... URL: From simoncropper at fossworkflowguides.com Mon Feb 2 16:54:55 2015 From: simoncropper at fossworkflowguides.com (Simon Cropper) Date: Tue, 03 Feb 2015 08:54:55 +1100 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: <54CFCBE9.5030506@ucsf.edu> References: <54CFCBE9.5030506@ucsf.edu> Message-ID: <54CFF22F.8050008@fossworkflowguides.com> Hi Mark My personal view when publishing work done with any software is... 1. Each bit of software used, its version and who released/sold it and if it is readily available on the Internet, a URL to the release should be cited. All foss software have specific attribution requirements so care should be made to ensure these are met. 2. In the methodology you need to outline the specific configuration or setup for any program that is able to vary the output of an algorithm based on different settings; and any work/papers that help justify these settings. 3. Where appropriate, as you are publishing in the academic arena, cite vanilla background papers -- like you suggested in your original post -- supporting the framework/library methodology. 4. Finally, to avoid problems with varying definitions of what actually constitutes the Scipy stack, outline only those software packages or libraries used. As pointed out by Aron the objective is to give enough information to the reader that your analysis can be reproduced. The problem is however that journals don't like gray literature or web references, let alone software or data sinks references. This can be clearly seen by the lack of any advice on how to cite this type of information in author guidelines on most reputable peer-reviewed journals. My suggestion here is to err on the side of providing too much information rather than brevity -- especially in the description of the software (include name, version, etc) and when pointing to the publisher/distributor (include name of publisher and URL). That said, assume the URL is transitory and include enough data that someone could search the web for a particular foss or dataset using the text you provided). On 03/02/15 06:11, Mark Voorhies wrote: > I'm putting together a set of "software tools" references for a paper that we are preparing to submit. > I am trying to balance acknowledging as much of our infrastructure as possible, while minimizing the > number of references that have no direct (i.e., unambiguously obvious to the reader) connection to the > methods section of the paper (e.g., citing Tornado, git, h5py, or MySQL is probably going too far; likewise, > I think it's reasonable to cite R but not rpy2). > > Based on http://www.scipy.org/citing.html, I think a good minimal set (for a paper with heavy use of > IPython for matplotlib-based plotting, including KDEs from scipy.stats, and a lot of vanilla python > sequence/expression analysis code) is: > > NumPy & SciPy > St?fan van der Walt, S. Chris Colbert and Ga?l Varoquaux. The NumPy Array: A Structure for Efficient Numerical Computation, Computing in Science & Engineering, 13, 22-30 (2011), DOI:10.1109/MCSE.2011.37 > > Matplotlib > John D. Hunter. Matplotlib: A 2D Graphics Environment, Computing in Science & Engineering, 9, 90-95 (2007), DOI:10.1109/MCSE.2007.55 > > IPython > Fernando P?rez and Brian E. Granger. IPython: A System for Interactive Scientific Computing, Computing in Science & Engineering, 9, 21-29 (2007), DOI:10.1109/MCSE.2007.53 > > Thoughts? > > --Mark > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides ------------------------------------------------------------ Introduction http://www.fossworkflowguides.com GIS Packages http://www.fossworkflowguides.com/gis bash / Python http://www.fossworkflowguides.com/scripting From wes.turner at gmail.com Mon Feb 2 17:20:04 2015 From: wes.turner at gmail.com (Wes Turner) Date: Mon, 2 Feb 2015 16:20:04 -0600 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: <54CFF22F.8050008@fossworkflowguides.com> References: <54CFCBE9.5030506@ucsf.edu> <54CFF22F.8050008@fossworkflowguides.com> Message-ID: On Mon, Feb 2, 2015 at 3:54 PM, Simon Cropper < simoncropper at fossworkflowguides.com> wrote: > Hi Mark > > My personal view when publishing work done with any software is... > > 1. Each bit of software used, its version and who released/sold it and > if it is readily available on the Internet, a URL to the release > should be cited. All foss software have specific attribution > requirements so care should be made to ensure these are met. > 2. In the methodology you need to outline the specific configuration > or setup for any program that is able to vary the output of an > algorithm based on different settings; and any work/papers that help > justify these settings. > 3. Where appropriate, as you are publishing in the academic arena, > cite vanilla background papers -- like you suggested in your > original post -- supporting the framework/library methodology. > 4. Finally, to avoid problems with varying definitions of what actually > constitutes the Scipy stack, outline only those software packages or > libraries used. As pointed out by Aron the objective is to give > enough information to the reader that your analysis can be > reproduced. > http://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1003285#s4 "Rule 3: Archive the Exact Versions of All External Programs Used" > > The problem is however that journals don't like gray literature or web > references, let alone software or data sinks references. http://www.plos.org/policies/#sharing "7. Sharing of Data, Materials, and Software" -------------- next part -------------- An HTML attachment was scrubbed... URL: From simoncropper at fossworkflowguides.com Mon Feb 2 17:36:33 2015 From: simoncropper at fossworkflowguides.com (Simon Cropper) Date: Tue, 03 Feb 2015 09:36:33 +1100 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: References: <54CFCBE9.5030506@ucsf.edu> <54CFF22F.8050008@fossworkflowguides.com> Message-ID: <54CFFBF1.4000808@fossworkflowguides.com> PLOS is just one journal and one specifically marketing the open source community. That said, liberal as it might be the author guidelines for referencing don't include any information on software (e.g.)... http://www.plosone.org/static/guidelines#references http://www.plosmedicine.org/static/guidelines#references On 03/02/15 09:20, Wes Turner wrote: > > > On Mon, Feb 2, 2015 at 3:54 PM, Simon Cropper > > wrote: > > Hi Mark > > My personal view when publishing work done with any software is... > > 1. Each bit of software used, its version and who released/sold it and > if it is readily available on the Internet, a URL to the release > should be cited. All foss software have specific attribution > requirements so care should be made to ensure these are met. > 2. In the methodology you need to outline the specific configuration > or setup for any program that is able to vary the output of an > algorithm based on different settings; and any work/papers that > help > justify these settings. > 3. Where appropriate, as you are publishing in the academic arena, > cite vanilla background papers -- like you suggested in your > original post -- supporting the framework/library methodology. > 4. Finally, to avoid problems with varying definitions of what actually > constitutes the Scipy stack, outline only those software > packages or > libraries used. As pointed out by Aron the objective is to give > enough information to the reader that your analysis can be > reproduced. > > > http://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1003285#s4 > > "Rule 3: Archive the Exact Versions of All External Programs Used" > > > The problem is however that journals don't like gray literature or web > references, let alone software or data sinks references. > > > http://www.plos.org/policies/#sharing > > "7. Sharing of Data, Materials, and Software" > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides ------------------------------------------------------------ Introduction http://www.fossworkflowguides.com GIS Packages http://www.fossworkflowguides.com/gis bash / Python http://www.fossworkflowguides.com/scripting From john at omernik.com Mon Feb 2 18:18:16 2015 From: john at omernik.com (John Omernik) Date: Mon, 2 Feb 2015 17:18:16 -0600 Subject: [IPython-dev] Way to "hide" results Message-ID: Is there a simple way in iPython notebook to take any results window and "collapse" it. In a way that still shows the command ran, and still keeps the data in the output, but in a way that can easily show or hide? It could help on long notebooks. Thanks! From moritz.beber at gmail.com Mon Feb 2 19:33:49 2015 From: moritz.beber at gmail.com (Moritz Beber) Date: Tue, 3 Feb 2015 01:33:49 +0100 Subject: [IPython-dev] Way to "hide" results In-Reply-To: References: Message-ID: Toggle output doesn't achieve what you want? Double click the area to the left of the output or use the menu. On Tue, Feb 3, 2015 at 12:18 AM, John Omernik wrote: > Is there a simple way in iPython notebook to take any results window > and "collapse" it. In a way that still shows the command ran, and > still keeps the data in the output, but in a way that can easily show > or hide? It could help on long notebooks. > > Thanks! > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Mon Feb 2 20:21:12 2015 From: wes.turner at gmail.com (Wes Turner) Date: Mon, 2 Feb 2015 19:21:12 -0600 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: <54CFFBF1.4000808@fossworkflowguides.com> References: <54CFCBE9.5030506@ucsf.edu> <54CFF22F.8050008@fossworkflowguides.com> <54CFFBF1.4000808@fossworkflowguides.com> Message-ID: On Feb 2, 2015 4:37 PM, "Simon Cropper" wrote: > > > PLOS is just one journal and one specifically marketing the open source > community. That said, liberal as it might be the author guidelines for > referencing don't include any information on software (e.g.)... > > http://www.plosone.org/static/guidelines#references > > http://www.plosmedicine.org/static/guidelines#references That would be a helpful policy addition. For purposes of systematic analysis, I feel it is appropriate to exclude unrepeatable, unreproducible studies (e.g. that do not include raw data or software versions). What a waste. -------------- next part -------------- An HTML attachment was scrubbed... URL: From simoncropper at fossworkflowguides.com Mon Feb 2 20:31:36 2015 From: simoncropper at fossworkflowguides.com (Simon Cropper) Date: Tue, 03 Feb 2015 12:31:36 +1100 Subject: [IPython-dev] Concise citations for the Scipy stack In-Reply-To: References: <54CFCBE9.5030506@ucsf.edu> <54CFF22F.8050008@fossworkflowguides.com> <54CFFBF1.4000808@fossworkflowguides.com> Message-ID: <54D024F8.2000806@fossworkflowguides.com> On 03/02/15 12:21, Wes Turner wrote: > > On Feb 2, 2015 4:37 PM, "Simon Cropper" > > wrote: > > > > > > PLOS is just one journal and one specifically marketing the open source > > community. That said, liberal as it might be the author guidelines for > > referencing don't include any information on software (e.g.)... > > > > http://www.plosone.org/static/guidelines#references > > > > http://www.plosmedicine.org/static/guidelines#references > > That would be a helpful policy addition. > > For purposes of systematic analysis, I feel it is appropriate to exclude > unrepeatable, unreproducible studies (e.g. that do not include raw data > or software versions). > > What a waste. > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > I agree on all three points. -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides ------------------------------------------------------------ Introduction http://www.fossworkflowguides.com GIS Packages http://www.fossworkflowguides.com/gis bash / Python http://www.fossworkflowguides.com/scripting From john at omernik.com Tue Feb 3 05:10:22 2015 From: john at omernik.com (John Omernik) Date: Tue, 3 Feb 2015 04:10:22 -0600 Subject: [IPython-dev] Way to "hide" results In-Reply-To: References: Message-ID: Perfect. Thank you. It was non-obvious to me, a simple hover over the blank space gave me the instructions I needed... On Mon, Feb 2, 2015 at 6:33 PM, Moritz Beber wrote: > Toggle output doesn't achieve what you want? Double click the area to the > left of the output or use the menu. > > On Tue, Feb 3, 2015 at 12:18 AM, John Omernik wrote: >> >> Is there a simple way in iPython notebook to take any results window >> and "collapse" it. In a way that still shows the command ran, and >> still keeps the data in the output, but in a way that can easily show >> or hide? It could help on long notebooks. >> >> Thanks! >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From bussonniermatthias at gmail.com Tue Feb 3 10:56:29 2015 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 3 Feb 2015 16:56:29 +0100 Subject: [IPython-dev] Jupyter-Drive (integration with google drive) beta. Message-ID: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Hi all, You might all have seen that IPython 3.0 Beta was released not so long ago. First, thanks for the feedback ! For those unaware, we are working on integration with google drive as an extension. Thanks to Google and especially to Kester Tong for helping a lot. You can find the package on PyPI : https://pypi.python.org/pypi/jupyterdrive And of course on github : https://github.com/jupyter/jupyter-drive/issues You can consider this 0.9 version as a 1.0 Beta, there are still a few missing things like duplication of file, but the core functionality will mostly be there. For now you also still need a **separate** IPython server to run with the google-drive profile. Cf readme.md. This version **does not** include real-time collaboration. It will need some refactor that will be done in IPython during the following year. So do expect next version of jupyterdrive to probably only be compatible with IPython 4.0. For those interested there is draft branch on github that start to implement a "mixed" content manager, that would allow with the same IPython server to access both local hard drive content and google drive one. As usual, back up your data, Jupyter-drive is much less battle tested than IPython itself. -- Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Tue Feb 3 11:55:02 2015 From: doug.blank at gmail.com (Doug Blank) Date: Tue, 3 Feb 2015 11:55:02 -0500 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly Message-ID: IPython devs, Having a problem trying to get an external C# kernel to work with the notebook. Everything appears to work fine, except for the kernel_info_request. "kernel_info_request" seems to work fine with the console, but not from the notebook. Can you think of a reason that the kernel_info_reply wouldn't get back to the right receiver in the notebook? Could it be the identities? Do they play a role in this? The code is here: https://github.com/dsblank/simple_kernel/blob/master/SimpleKernel.cs Any ideas appreciated... I've tried to follow why it wouldn't get routed back to the handler, but haven't found the problem yet. -Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Tue Feb 3 13:46:50 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Tue, 3 Feb 2015 10:46:50 -0800 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: Are we still planning on merging the branch that enabled "mixed" content before 3.0? On Tue, Feb 3, 2015 at 7:56 AM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > Hi all, > > You might all have seen that IPython 3.0 Beta was released not so long ago. > First, thanks for the feedback ! > > For those unaware, we are working on integration with google > drive as an extension. > Thanks to Google and especially to Kester Tong for helping a lot. > > You can find the package on PyPI : > > https://pypi.python.org/pypi/jupyterdrive > > And of course on github : > > https://github.com/jupyter/jupyter-drive/issues > > You can consider this 0.9 version as a 1.0 Beta, > there are still a few missing things like duplication of file, > but the core functionality will mostly be there. > > For now you also still need a **separate** IPython server to run with the > google-drive > profile. Cf readme.md. > > This version **does not** include real-time collaboration. It will need > some refactor > that will be done in IPython during the following year. So do expect next > version > of jupyterdrive to probably only be compatible with IPython 4.0. > > For those interested there is draft branch on github that start to > implement a "mixed" content > manager, that would allow with the same IPython server to access both > local hard drive content > and google drive one. > > As usual, back up your data, Jupyter-drive is much less battle tested than > IPython itself. > > -- > Matthias > > -- > 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+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/523B928E-4BC9-47DC-9514-4EB0F5CF3DDE%40gmail.com > > . > For more options, visit https://groups.google.com/d/optout. > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Feb 3 13:53:02 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 3 Feb 2015 10:53:02 -0800 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: On 3 February 2015 at 10:46, Brian Granger wrote: > Are we still planning on merging the branch that enabled "mixed" content > before 3.0? That sounds like a much bigger change than I would expect to land between now and 3.0. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Tue Feb 3 14:08:58 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Tue, 3 Feb 2015 11:08:58 -0800 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: Matthias - can you detail what is involved in this? On Tue, Feb 3, 2015 at 10:53 AM, Thomas Kluyver wrote: > On 3 February 2015 at 10:46, Brian Granger wrote: > >> Are we still planning on merging the branch that enabled "mixed" content >> before 3.0? > > > That sounds like a much bigger change than I would expect to land between > now and 3.0. > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Feb 3 17:49:14 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 3 Feb 2015 14:49:14 -0800 Subject: [IPython-dev] Meetings back to 1800 UTC Message-ID: >From the next meeting (this Thursday, if there's enough on the Hackpad to need a meeting, next Tuesday otherwise), we'll be moving the time of our regular meetings back to 1800 UTC (10am California/6pm UK/7pm Western Europe). Matthias is moving from Paris to Berkeley, so there's less pressure to push the meeting earlier, and several of us, not least me, don't reliably show up by 9.30, so we often ended up starting 15 minutes late. As always, we'll have the meetings using Google Hangouts, with a live stream on Youtube for anyone who's interested. If you want to watch, join our chat room (https://gitter.im/ipython/ipython ) and watch for the links. We meet every Tuesday, and Thursdays when there's more we want to discuss. Thanks, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Tue Feb 3 23:58:09 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 3 Feb 2015 20:58:09 -0800 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: I've looked through the code and I don't see any of the likely culprits. It is definitely the identities that determine the destination of a message, so that's where I would start to debug. I don't have a C# dev environment, so I can't dig much deeper myself. -MinRK On Tue, Feb 3, 2015 at 8:55 AM, Doug Blank wrote: > IPython devs, > > Having a problem trying to get an external C# kernel to work with the > notebook. Everything appears to work fine, except for the > kernel_info_request. "kernel_info_request" seems to work fine with the > console, but not from the notebook. > > Can you think of a reason that the kernel_info_reply wouldn't get back to > the right receiver in the notebook? Could it be the identities? Do they > play a role in this? > > The code is here: > > https://github.com/dsblank/simple_kernel/blob/master/SimpleKernel.cs > > Any ideas appreciated... I've tried to follow why it wouldn't get routed > back to the handler, but haven't found the problem yet. > > -Doug > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From the.gerenuk at googlemail.com Wed Feb 4 01:41:16 2015 From: the.gerenuk at googlemail.com (Ant Super) Date: Wed, 4 Feb 2015 07:41:16 +0100 Subject: [IPython-dev] Move output scrollbar to top? Message-ID: Hi! do you guys know a way to move the output scrollbar of (HTML) output in the IPython notebook to the top of the cell? When you output wide pandas dataframes with no limit on columns (because you want to see them all), it produces an HTML output cell with scrollbars. The annoying thing is that the horizontal scrollbar is at the bottom, so that you have to scroll down on the page, then scroll right and finally scroll up again to see the header of the dataframe. Is there a hack to place the horizontal scrollbar top? Is this a sensible default option? Anton -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Feb 4 03:44:41 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 4 Feb 2015 09:44:41 +0100 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: Quick from the airport. No and it was not planned, it was "best effort", "would be great to have synced release". Jupyter drive is not Ipython. Release schedule is decoupled. Though release of IPython 3.0 is needed for me to actually release JDrive because it needs it, I can do whatever with JDrive. If there are interest in mixed content And I have time, it might got in before 3.0. But if the use is low I'll focus on real time API. Envoy? de mon iPhone > Le 3 f?vr. 2015 ? 19:46, Brian Granger a ?crit : > > Are we still planning on merging the branch that enabled "mixed" content before 3.0? > >> On Tue, Feb 3, 2015 at 7:56 AM, Matthias BUSSONNIER wrote: >> Hi all, >> >> You might all have seen that IPython 3.0 Beta was released not so long ago. >> First, thanks for the feedback ! >> >> For those unaware, we are working on integration with google >> drive as an extension. >> Thanks to Google and especially to Kester Tong for helping a lot. >> >> You can find the package on PyPI : >> >> https://pypi.python.org/pypi/jupyterdrive >> >> And of course on github : >> >> https://github.com/jupyter/jupyter-drive/issues >> >> You can consider this 0.9 version as a 1.0 Beta, >> there are still a few missing things like duplication of file, >> but the core functionality will mostly be there. >> >> For now you also still need a **separate** IPython server to run with the google-drive >> profile. Cf readme.md. >> >> This version **does not** include real-time collaboration. It will need some refactor >> that will be done in IPython during the following year. So do expect next version >> of jupyterdrive to probably only be compatible with IPython 4.0. >> >> For those interested there is draft branch on github that start to implement a "mixed" content >> manager, that would allow with the same IPython server to access both local hard drive content >> and google drive one. >> >> As usual, back up your data, Jupyter-drive is much less battle tested than IPython itself. >> >> -- >> Matthias >> >> -- >> 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+unsubscribe at googlegroups.com. >> To post to this group, send email to jupyter at googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/523B928E-4BC9-47DC-9514-4EB0F5CF3DDE%40gmail.com. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > @ellisonbg on Twitter and GitHub > bgranger at calpoly.edu and ellisonbg at gmail.com > -- > 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+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAH4pYpRTtPDctpRUEpWvQwgbjbDjbz5W8mSDUhZFcYTXEE2Tyg%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Wed Feb 4 06:23:05 2015 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 4 Feb 2015 06:23:05 -0500 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: On Tue, Feb 3, 2015 at 11:58 PM, MinRK wrote: > I've looked through the code and I don't see any of the likely culprits. > It is definitely the identities that determine the destination of a > message, so that's where I would start to debug. I don't have a C# dev > environment, so I can't dig much deeper myself. > Thanks for looking at this. Where in the IPython code do identities get decoded and then routed? Maybe I can see there what the notebook is actually receiving from the kernel and what it actually should be. -Doug > > -MinRK > > On Tue, Feb 3, 2015 at 8:55 AM, Doug Blank wrote: > >> IPython devs, >> >> Having a problem trying to get an external C# kernel to work with the >> notebook. Everything appears to work fine, except for the >> kernel_info_request. "kernel_info_request" seems to work fine with the >> console, but not from the notebook. >> >> Can you think of a reason that the kernel_info_reply wouldn't get back to >> the right receiver in the notebook? Could it be the identities? Do they >> play a role in this? >> >> The code is here: >> >> https://github.com/dsblank/simple_kernel/blob/master/SimpleKernel.cs >> >> Any ideas appreciated... I've tried to follow why it wouldn't get routed >> back to the handler, but haven't found the problem yet. >> >> -Doug >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Wed Feb 4 06:27:14 2015 From: kikocorreoso at gmail.com (Kiko) Date: Wed, 4 Feb 2015 12:27:14 +0100 Subject: [IPython-dev] Disable the nb shortcuts temporaly Message-ID: Hi all, I am working on an extension that involves a dialog form. The problem is that when I try to write in the inputs of the form I interact with some shortcuts and I can't write correctly. Is there a way to do that without a conflict with shorcuts or is there an easy way to disable and enable the nb shortcuts on demand? I tried to find something on IPython.keyboard_manager.[]... Thanks. Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmckerns at caltech.edu Wed Feb 4 08:53:53 2015 From: mmckerns at caltech.edu (Michael McKerns) Date: Wed, 4 Feb 2015 08:53:53 -0500 Subject: [IPython-dev] IPython parallel and objects In-Reply-To: References: <1422448825555-5084497.post@n6.nabble.com> Message-ID: If you are looking to convert nested for-loops to hierarchical parallel maps, this is the kind of thing that `pathos` is built to do. If you are interested in an optimizer that can utilize hierarchical parallelism to compute expectation values, this is the kind of thing that `mystic` is designed to do. If you want to get the code, the best place to get them is here: https://github.com/uqfoundation Examples: http://stackoverflow.com/questions/28203774/how-to-do-hierarchical-parallelism-in-ipython-parallel http://stackoverflow.com/questions/27751023/converting-serial-to-parallel-to-multi-machine Neither `pathos` nor `mystic` use IPython-parallel, but I hope to make them more compatible with it in the near future. > Hi, > > On Wed, Jan 28, 2015 at 1:40 PM, thwiouz wrote: > >> Hi guys, >> >> I'd like to parallelize the following loop: >> >> m1 = np.arange(0, 10, 100) >> m2 = np.arange(0, 10, 100) >> >> for m_ in m1: >> for n_2 in m2: >> tmp = optimizer.compute_expectation([m_, n_]) >> res.append(tmp) >> >> with type(optimizer) some class that I've defined. How could I handle >> it? >> >> I tried to do the same as in >> >> http://stackoverflow.com/questions/9363118/parallelise-nested-for-loop-in-ipython >> so I created a lambda function f >> >> f = lambda x, y: optimizer.compute_expectation([x, y]) >> >> but it's not working with a load balanced view, saying that optimizer is >> not >> defined. >> > > IPython only automatically transmits the function definition used in a > `map` call or similar. Your optimizer is inside your lambda function and > thus unknown on the remote kernels. In order to overcome this, take a look > here: > > http://ipython.org/ipython-doc/2/parallel/parallel_multiengine.html#remote-function-decorators > > and here: > > http://ipython.org/ipython-doc/2/parallel/parallel_task.html#dependencies > > this could be helpful, too: > > http://ipython.org/ipython-doc/2/parallel/parallel_multiengine.html#moving-python-objects-around > > > HTH, > Moritz > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > --- Mike McKerns California Institute of Technology TEL: (626)395-5773 or (626)590-8470 http://www.its.caltech.edu/~mmckerns mmckerns at caltech.edu From nick.bollweg at gmail.com Wed Feb 4 09:26:12 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Wed, 4 Feb 2015 09:26:12 -0500 Subject: [IPython-dev] Disable the nb shortcuts temporaly In-Reply-To: References: Message-ID: Yeah, that's tripped me up, too! IPython.keyboard_manager.register_events($(your element)) Here are some examples of it: https://github.com/ipython/ipython/search?utf8=%E2%9C%93&q=register_events -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Wed Feb 4 09:28:20 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Wed, 4 Feb 2015 09:28:20 -0500 Subject: [IPython-dev] Move output scrollbar to top? In-Reply-To: References: Message-ID: Looks like a 0-height div and some event ninjitsu would work. http://aburt.com/topscrollbar/ On Wed, Feb 4, 2015 at 1:41 AM, Ant Super wrote: > Hi! > do you guys know a way to move the output scrollbar of (HTML) output in > the IPython notebook to the top of the cell? > > When you output wide pandas dataframes with no limit on columns (because > you want to > see them all), it produces an HTML output cell with scrollbars. The > annoying thing is that the horizontal scrollbar is at the bottom, so that > you have to scroll down on the page, then scroll right and finally scroll > up again to see the header of the dataframe. > > Is there a hack to place the horizontal scrollbar top? Is this a sensible > default option? > > Anton > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.gestes at gmail.com Wed Feb 4 09:32:16 2015 From: cedric.gestes at gmail.com (Cedric GESTES) Date: Wed, 4 Feb 2015 15:32:16 +0100 Subject: [IPython-dev] Dockable widgets for IPython In-Reply-To: References: <1422550665175-5084622.post@n6.nabble.com> Message-ID: Thanks for your advices. I made an IPython notebook extension out of my hack. I started by applying some of your comments. Each dock now has a cell. The input part of the cell can be toggled to only display output. (ie widgets) The code can be found here: https://github.com/kwikteam/ipython-nbdock I plan to use bootstrap and FA as advertised. I have an issue with cells, they do not belong to the main notebook. I wonder if it is better to use cell directly, or to use a full notebook in each dock? Issues are: saving/reloading/cell focus/... a screenshot is attached.? On Fri, Jan 30, 2015 at 11:30 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Hi, > > To add to what Nicholas said, > After IPython 3.0 we will split the widget in a separate repository. > It will be easier to contribute/discuss than just before 3.0 release > or while widget are still tightly entangled with IPython code. > -- > M > > > Le 29 janv. 2015 ? 19:32, Nicholas Bollweg a > ?crit : > > cedric: > > this looks very cool: as the "ipython is not a platform" party line > softens, ideas like this are important for pushing what "interactive > computing" can be like. My immediate concern would be in not knowing which > cell a particular widget came from. Additionally, from a purely stylistic > sense, try using bootstrap panels and fontawesome to make it flow more > seamlessly with the notebook UI. > > I think several folks have been looking for this in the past, especially > with creating such controls at notebook load time: > > http://python.6.x6.nabble.com/How-To-create-persistent-interactive-UI-elements-outside-cells-td5079080.html#a5079562 > > I'd say near-term, see if you can repackage this into an nbextension that > someone can optionally add at profile config/run-time. If it can be made > into pure javascript that stores its data in the notebook/cell metadata, > that lowers the barrier to entry... and makes it more feasible to use with > other kernels. > > Otherwise, if you need the python part, there is the approach taken by > cite2c . Specifically, allowing the > configuration of the web app (not the kernel) to include loading custom > extensions > . > > i have been interested in alternate editable layouts for some time: of > them i think live_reveal , > while still a little fiddly to install, has the most potential for becoming > something that would make sense to ship with the notebook experience, > especially as it is cell-based, (really) front-end only and its metadata is > already integrated into nvconvert and (soon, hopefully!) nbviewer. If your > widgets could survive nbviewer (either with or without help from a custom > converter) that would be really cool... once static widgets are supported. > > i have a bit of python widget code that will populate widgets on top of > SVG regions (as defined by layers in inkscape): this makes it easy to build > up full-screen capable dashboards without requiring a lot of CSS/JS > knowledge. > > SVGLayout(svg="dashboard.svg", > children={"chart": SomeChartWidget()}) > > i want to refactor it into pure javascript as well. > > keep the list posted! > > On Thu, Jan 29, 2015 at 11:57 AM, cedric gestes wrote: > >> I hacked a prototype of dockable widgets using DockSpawn. >> >> see >> >> http://www.hostingpics.net/viewer.php?id=990121201501291741191600x900scrot.png >> for a screenshot. >> >> Before going further I would like to take your advice on the subject. >> >> Is that something wanted in IPython? >> >> We can imagine having cells and widgets in docks. >> >> The prototype is hackish and just a proof of concept. >> >> You can find it github on the branch dockspawn of: >> github.com/ctaf42/ipython and github.com/ctaf42/ipython-components >> >> just checkout, run IPython and open a notebook like this one: >> http://nbviewer.ipython.org/gist/ctaf42/e029c475b08bdfe43f6a >> >> Cedric >> >> >> >> >> -- >> View this message in context: >> http://python.6.x6.nabble.com/Dockable-widgets-for-IPython-tp5084622.html >> Sent from the IPython - Development mailing list archive at Nabble.com. >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2015-02-04-151423_1600x900_scrot.png Type: image/png Size: 161246 bytes Desc: not available URL: From hughesadam87 at gmail.com Wed Feb 4 11:43:16 2015 From: hughesadam87 at gmail.com (Adam Hughes) Date: Wed, 4 Feb 2015 11:43:16 -0500 Subject: [IPython-dev] Dockable widgets for IPython In-Reply-To: References: <1422550665175-5084622.post@n6.nabble.com> Message-ID: Just from a pure user standpoint, I am certainly interested in something like this. Looks cool! On Feb 4, 2015 9:33 AM, "Cedric GESTES" wrote: > Thanks for your advices. > > I made an IPython notebook extension out of my hack. > > I started by applying some of your comments. Each dock now has a cell. The > input part of the cell can be toggled to only display output. (ie widgets) > > The code can be found here: > https://github.com/kwikteam/ipython-nbdock > > I plan to use bootstrap and FA as advertised. > > I have an issue with cells, they do not belong to the main notebook. > > I wonder if it is better to use cell directly, or to use a full notebook > in each dock? > Issues are: saving/reloading/cell focus/... > > a screenshot is attached.? > > > On Fri, Jan 30, 2015 at 11:30 AM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> Hi, >> >> To add to what Nicholas said, >> After IPython 3.0 we will split the widget in a separate repository. >> It will be easier to contribute/discuss than just before 3.0 release >> or while widget are still tightly entangled with IPython code. >> -- >> M >> >> >> Le 29 janv. 2015 ? 19:32, Nicholas Bollweg a >> ?crit : >> >> cedric: >> >> this looks very cool: as the "ipython is not a platform" party line >> softens, ideas like this are important for pushing what "interactive >> computing" can be like. My immediate concern would be in not knowing which >> cell a particular widget came from. Additionally, from a purely stylistic >> sense, try using bootstrap panels and fontawesome to make it flow more >> seamlessly with the notebook UI. >> >> I think several folks have been looking for this in the past, especially >> with creating such controls at notebook load time: >> >> http://python.6.x6.nabble.com/How-To-create-persistent-interactive-UI-elements-outside-cells-td5079080.html#a5079562 >> >> I'd say near-term, see if you can repackage this into an nbextension that >> someone can optionally add at profile config/run-time. If it can be made >> into pure javascript that stores its data in the notebook/cell metadata, >> that lowers the barrier to entry... and makes it more feasible to use with >> other kernels. >> >> Otherwise, if you need the python part, there is the approach taken by >> cite2c . Specifically, allowing the >> configuration of the web app (not the kernel) to include loading custom >> extensions >> . >> >> i have been interested in alternate editable layouts for some time: of >> them i think live_reveal , >> while still a little fiddly to install, has the most potential for becoming >> something that would make sense to ship with the notebook experience, >> especially as it is cell-based, (really) front-end only and its metadata is >> already integrated into nvconvert and (soon, hopefully!) nbviewer. If your >> widgets could survive nbviewer (either with or without help from a custom >> converter) that would be really cool... once static widgets are supported. >> >> i have a bit of python widget code that will populate widgets on top of >> SVG regions (as defined by layers in inkscape): this makes it easy to build >> up full-screen capable dashboards without requiring a lot of CSS/JS >> knowledge. >> >> SVGLayout(svg="dashboard.svg", >> children={"chart": SomeChartWidget()}) >> >> i want to refactor it into pure javascript as well. >> >> keep the list posted! >> >> On Thu, Jan 29, 2015 at 11:57 AM, cedric gestes wrote: >> >>> I hacked a prototype of dockable widgets using DockSpawn. >>> >>> see >>> >>> http://www.hostingpics.net/viewer.php?id=990121201501291741191600x900scrot.png >>> for a screenshot. >>> >>> Before going further I would like to take your advice on the subject. >>> >>> Is that something wanted in IPython? >>> >>> We can imagine having cells and widgets in docks. >>> >>> The prototype is hackish and just a proof of concept. >>> >>> You can find it github on the branch dockspawn of: >>> github.com/ctaf42/ipython and github.com/ctaf42/ipython-components >>> >>> just checkout, run IPython and open a notebook like this one: >>> http://nbviewer.ipython.org/gist/ctaf42/e029c475b08bdfe43f6a >>> >>> Cedric >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://python.6.x6.nabble.com/Dockable-widgets-for-IPython-tp5084622.html >>> Sent from the IPython - Development mailing list archive at Nabble.com. >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Wed Feb 4 12:00:33 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 4 Feb 2015 09:00:33 -0800 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: On Wed, Feb 4, 2015 at 3:23 AM, Doug Blank wrote: On Tue, Feb 3, 2015 at 11:58 PM, MinRK wrote: > >> I've looked through the code and I don't see any of the likely culprits. >> It is definitely the identities that determine the destination of a >> message, so that's where I would start to debug. I don't have a C# dev >> environment, so I can't dig much deeper myself. >> > > Thanks for looking at this. Where in the IPython code do identities get > decoded and then routed? Maybe I can see there what the notebook is > actually receiving from the kernel and what it actually should be. > They don?t get decoded at all, but they are gathered from the message content in Session.feed_identities , and then used unmodified to route the reply. I think I might know what?s going on, though. I see UTF8 used on every send/recv, but identities are not UTF8, they are binary blobs (uint32 by default). So if it?s coercing those to UTF8, the value of the identity will be lost in encoding errors. This could be why it works in some places and not others - we set a manual identity on *most* sockets, which we use to associate the stdin channel with a given request. These happen to be ASCII, but could jut as easily be random binary values. We don?t set an identity on the socket used for the kernel_info_request that starts off the notebook connection, though. -MinRK > -Doug > > > >> >> -MinRK >> >> On Tue, Feb 3, 2015 at 8:55 AM, Doug Blank wrote: >> >>> IPython devs, >>> >>> Having a problem trying to get an external C# kernel to work with the >>> notebook. Everything appears to work fine, except for the >>> kernel_info_request. "kernel_info_request" seems to work fine with the >>> console, but not from the notebook. >>> >>> Can you think of a reason that the kernel_info_reply wouldn't get back >>> to the right receiver in the notebook? Could it be the identities? Do they >>> play a role in this? >>> >>> The code is here: >>> >>> https://github.com/dsblank/simple_kernel/blob/master/SimpleKernel.cs >>> >>> Any ideas appreciated... I've tried to follow why it wouldn't get routed >>> back to the handler, but haven't found the problem yet. >>> >>> -Doug >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Wed Feb 4 12:13:47 2015 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 4 Feb 2015 12:13:47 -0500 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: On Wed, Feb 4, 2015 at 12:00 PM, MinRK wrote: > On Wed, Feb 4, 2015 at 3:23 AM, Doug Blank wrote: > > On Tue, Feb 3, 2015 at 11:58 PM, MinRK wrote: >> >>> I've looked through the code and I don't see any of the likely culprits. >>> It is definitely the identities that determine the destination of a >>> message, so that's where I would start to debug. I don't have a C# dev >>> environment, so I can't dig much deeper myself. >>> >> >> Thanks for looking at this. Where in the IPython code do identities get >> decoded and then routed? Maybe I can see there what the notebook is >> actually receiving from the kernel and what it actually should be. >> > They don?t get decoded at all, but they are gathered from the message > content in Session.feed_identities > , > and then used unmodified to route the reply. > > I think I might know what?s going on, though. I see UTF8 used on every > send/recv, but identities are not UTF8, they are binary blobs (uint32 by > default). So if it?s coercing those to UTF8, the value of the identity will > be lost in encoding errors. > Ok, thanks... that gives me some things to try. Perhaps if I just change the way that the sockets read/write it may work? This could be why it works in some places and not others - we set a manual > identity on *most* sockets, which we use to associate the stdin channel > with a given request. These happen to be ASCII, but could jut as easily be > random binary values. We don?t set an identity on the socket used for the > kernel_info_request that starts off the notebook connection, though. > Hmmm... but I am getting a 5 to 8 byte identity string on the kernel_info_request... what does that imply? It is a ZMQ identity? It could be ignored? Or, I must respect it, and send it back (in proper form) with the response? -Doug > -MinRK > > >> -Doug >> >> >> >>> >>> -MinRK >>> >>> On Tue, Feb 3, 2015 at 8:55 AM, Doug Blank wrote: >>> >>>> IPython devs, >>>> >>>> Having a problem trying to get an external C# kernel to work with the >>>> notebook. Everything appears to work fine, except for the >>>> kernel_info_request. "kernel_info_request" seems to work fine with the >>>> console, but not from the notebook. >>>> >>>> Can you think of a reason that the kernel_info_reply wouldn't get back >>>> to the right receiver in the notebook? Could it be the identities? Do they >>>> play a role in this? >>>> >>>> The code is here: >>>> >>>> https://github.com/dsblank/simple_kernel/blob/master/SimpleKernel.cs >>>> >>>> Any ideas appreciated... I've tried to follow why it wouldn't get >>>> routed back to the handler, but haven't found the problem yet. >>>> >>>> -Doug >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> ? > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Wed Feb 4 13:15:42 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 4 Feb 2015 10:15:42 -0800 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: On Wed, Feb 4, 2015 at 9:13 AM, Doug Blank wrote: > > On Wed, Feb 4, 2015 at 12:00 PM, MinRK wrote: > >> On Wed, Feb 4, 2015 at 3:23 AM, Doug Blank wrote: >> >> On Tue, Feb 3, 2015 at 11:58 PM, MinRK wrote: >>> >>>> I've looked through the code and I don't see any of the likely >>>> culprits. It is definitely the identities that determine the destination of >>>> a message, so that's where I would start to debug. I don't have a C# dev >>>> environment, so I can't dig much deeper myself. >>>> >>> >>> Thanks for looking at this. Where in the IPython code do identities get >>> decoded and then routed? Maybe I can see there what the notebook is >>> actually receiving from the kernel and what it actually should be. >>> >> They don?t get decoded at all, but they are gathered from the message >> content in Session.feed_identities >> , >> and then used unmodified to route the reply. >> >> I think I might know what?s going on, though. I see UTF8 used on every >> send/recv, but identities are not UTF8, they are binary blobs (uint32 by >> default). So if it?s coercing those to UTF8, the value of the identity will >> be lost in encoding errors. >> > Ok, thanks... that gives me some things to try. Perhaps if I just change > the way that the sockets read/write it may work? > I?m not familiar with C# or the API for the C# zmq bindings, but you will want to treat the identity prefix as binary blobs, not text. > This could be why it works in some places and not others - we set a manual >> identity on *most* sockets, which we use to associate the stdin channel >> with a given request. These happen to be ASCII, but could jut as easily be >> random binary values. We don?t set an identity on the socket used for the >> kernel_info_request that starts off the notebook connection, though. >> > Hmmm... but I am getting a 5 to 8 byte identity string on the > kernel_info_request... what does that imply? It is a ZMQ identity? It could > be ignored? Or, I must respect it, and send it back (in proper form) with > the response? > The first N frames of the message (typically 1) are the identity prefix. These should be treated as opaque binary blobs. They will be followed by the delimiter (should really have been an empty string, but I never removed my toy delimiter before it was too late). The reply must be sent with the exact same identity prefix in order to arrive at the correct destination.A reply should always be identical to its request, up to and including the delimiter frame. This is how ZeroMQ decides where messages should be routed. In IPython, the identity prefix is either 1 or 2 frames, but it can technically 0-many (1-many for ROUTER sockets). They should be treated as opaque bytestrings, and never interpreted as text, even though some subset of them may happen to be valid ASCII. You don?t have to do anything with these frames other than collect them until you hit the delimiter, and make sure to send them back unmodified as the prefix for the reply. -MinRK > -Doug > > > >> -MinRK >> >> >>> -Doug >>> >>> >>> >>>> >>>> -MinRK >>>> >>>> On Tue, Feb 3, 2015 at 8:55 AM, Doug Blank >>>> wrote: >>>> >>>>> IPython devs, >>>>> >>>>> Having a problem trying to get an external C# kernel to work with the >>>>> notebook. Everything appears to work fine, except for the >>>>> kernel_info_request. "kernel_info_request" seems to work fine with the >>>>> console, but not from the notebook. >>>>> >>>>> Can you think of a reason that the kernel_info_reply wouldn't get back >>>>> to the right receiver in the notebook? Could it be the identities? Do they >>>>> play a role in this? >>>>> >>>>> The code is here: >>>>> >>>>> https://github.com/dsblank/simple_kernel/blob/master/SimpleKernel.cs >>>>> >>>>> Any ideas appreciated... I've tried to follow why it wouldn't get >>>>> routed back to the handler, but haven't found the problem yet. >>>>> >>>>> -Doug >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> ? >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > ? ? ? ? ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Thu Feb 5 03:28:07 2015 From: kikocorreoso at gmail.com (Kiko) Date: Thu, 5 Feb 2015 09:28:07 +0100 Subject: [IPython-dev] Disable the nb shortcuts temporaly In-Reply-To: References: Message-ID: 2015-02-04 15:26 GMT+01:00 Nicholas Bollweg : > Yeah, that's tripped me up, too! > > IPython.keyboard_manager.register_events($(your element)) > > Here are some examples of it: > https://github.com/ipython/ipython/search?utf8=%E2%9C%93&q=register_events > > > Thanks, Nicholas. That was really useful!!!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Thu Feb 5 04:18:02 2015 From: kikocorreoso at gmail.com (Kiko) Date: Thu, 5 Feb 2015 10:18:02 +0100 Subject: [IPython-dev] Move output scrollbar to top? In-Reply-To: References: Message-ID: 2015-02-04 15:28 GMT+01:00 Nicholas Bollweg : > Looks like a 0-height div and some event ninjitsu would work. > http://aburt.com/topscrollbar/ > > On Wed, Feb 4, 2015 at 1:41 AM, Ant Super > wrote: > >> Hi! >> do you guys know a way to move the output scrollbar of (HTML) output in >> the IPython notebook to the top of the cell? >> >> When you output wide pandas dataframes with no limit on columns (because >> you want to >> see them all), it produces an HTML output cell with scrollbars. The >> annoying thing is that the horizontal scrollbar is at the bottom, so that >> you have to scroll down on the page, then scroll right and finally scroll >> up again to see the header of the dataframe. >> >> Is there a hack to place the horizontal scrollbar top? Is this a sensible >> default option? >> >> You could always use the third button of your mouse as an easy and cheap solution. > Anton >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Thu Feb 5 06:59:55 2015 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 5 Feb 2015 06:59:55 -0500 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: Thank you so much for the time and energy to look at this! Solved! Yes, it was the encoding of the identities. I was able to use an 8-bit character encoding (System.Text.Encoding.GetEncoding("windows-1252")) on read, and those bytes to reply. I'll update the simple_kernel C# example [1]. -Doug [1] - https://github.com/dsblank/simple_kernel -------------- next part -------------- An HTML attachment was scrubbed... URL: From max_linke at gmx.de Thu Feb 5 10:55:21 2015 From: max_linke at gmx.de (Max Linke) Date: Thu, 05 Feb 2015 16:55:21 +0100 Subject: [IPython-dev] always use online version of mathjax for nbconvert Message-ID: <54D39269.3010901@gmx.de> Hi I have installed a local copy of mathjax to use the notebooks on the go while I have no Internet connection. Today I wanted to share a notebook as a html file with a colleague and noticed that non of my formulas are rendered in the HTML. Looking into the html I couldn't find any instructions to load the mathjax code. Is there a template that always uses the online version of mathjax for html exports independent of the setup from my local machine? best Max From takowl at gmail.com Thu Feb 5 11:27:16 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 5 Feb 2015 08:27:16 -0800 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: Really, they shouldn't be decoded at all - can't you just store the identities as plain bytes? -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Thu Feb 5 11:39:01 2015 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 5 Feb 2015 11:39:01 -0500 Subject: [IPython-dev] Notebook doesn't respond to external kernel's kernel_info_request properly In-Reply-To: References: Message-ID: On Thu, Feb 5, 2015 at 11:27 AM, Thomas Kluyver wrote: > Really, they shouldn't be decoded at all - can't you just store the > identities as plain bytes? > Sorry, I was a bit vague on the solution. The part about 8-bit decoding was in reference to converting the bytes so to compare with the delimiter string "". But, yes, the solution is largely to just treat them as bytes. -Doug > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Thu Feb 5 13:22:09 2015 From: benjaminrk at gmail.com (MinRK) Date: Thu, 5 Feb 2015 10:22:09 -0800 Subject: [IPython-dev] always use online version of mathjax for nbconvert In-Reply-To: <54D39269.3010901@gmx.de> References: <54D39269.3010901@gmx.de> Message-ID: What version of IPython? nbconvert html export should include mathjax from their CDN by default, unless you are using a custom template. -MinRK On Thu, Feb 5, 2015 at 7:55 AM, Max Linke wrote: > Hi > > I have installed a local copy of mathjax to use the notebooks on the go > while I have no Internet connection. Today I wanted to share a notebook > as a html file with a colleague and noticed that non of my formulas are > rendered in the HTML. Looking into the html I couldn't find any > instructions to load the mathjax code. Is there a template that always > uses the online version of mathjax for html exports independent of the > setup from my local machine? > > best Max > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.brett at gmail.com Thu Feb 5 13:31:15 2015 From: matthew.brett at gmail.com (Matthew Brett) Date: Thu, 5 Feb 2015 10:31:15 -0800 Subject: [IPython-dev] always use online version of mathjax for nbconvert In-Reply-To: References: <54D39269.3010901@gmx.de> Message-ID: Hi, On Thu, Feb 5, 2015 at 10:22 AM, MinRK wrote: > What version of IPython? nbconvert html export should include mathjax from > their CDN by default, unless you are using a custom template. > > -MinRK > > On Thu, Feb 5, 2015 at 7:55 AM, Max Linke wrote: >> >> Hi >> >> I have installed a local copy of mathjax to use the notebooks on the go >> while I have no Internet connection. Today I wanted to share a notebook >> as a html file with a colleague and noticed that non of my formulas are >> rendered in the HTML. Looking into the html I couldn't find any >> instructions to load the mathjax code. Is there a template that always >> uses the online version of mathjax for html exports independent of the >> setup from my local machine? I noticed some problems when I started serving mathjax from my own machine, which I put down to mathjax loading much more quickly and therefore beating the page load in a race. I ended up putting in some custom HTML that I believed was forcing a mathjax load: https://github.com/matthew-brett/perrin-academy/blob/master/sphinxext/notebook_sphinxext.py#L220 Unfortunately I'm a complete novice with javascript, and mathjax, so I don't know whether that is a reasonable solution. Cheers, Matthew From edsrahn at gmail.com Fri Feb 6 04:51:20 2015 From: edsrahn at gmail.com (Ed Rahn) Date: Fri, 06 Feb 2015 04:51:20 -0500 Subject: [IPython-dev] wait_interactive() Message-ID: <54D48E98.70409@gmail.com> Do you have to do anything special to get wait_interactive() to work? If I have a trace back in my calling function it works, but otherwise I've been waiting almost a hour and I see nothing. Here is the relevant code: rc = Client() lview = rc.load_balanced_view() ma = lview.map_async(get_fields, entries) ma.wait_interactive() thanks Ed From max_linke at gmx.de Fri Feb 6 05:01:37 2015 From: max_linke at gmx.de (Max Linke) Date: Fri, 06 Feb 2015 11:01:37 +0100 Subject: [IPython-dev] always use online version of mathjax for nbconvert In-Reply-To: References: <54D39269.3010901@gmx.de> Message-ID: <54D49101.70905@gmx.de> I noticed I made a mistake myself. I started using noscript a few days ago and hadn't noticed that I didn't allow mathjax to be loaded. Thanks for the help anyway. best Max On 02/05/2015 07:22 PM, MinRK wrote: > What version of IPython? nbconvert html export should include mathjax from > their CDN by default, unless you are using a custom template. > > -MinRK > > On Thu, Feb 5, 2015 at 7:55 AM, Max Linke wrote: > >> Hi >> >> I have installed a local copy of mathjax to use the notebooks on the go >> while I have no Internet connection. Today I wanted to share a notebook >> as a html file with a colleague and noticed that non of my formulas are >> rendered in the HTML. Looking into the html I couldn't find any >> instructions to load the mathjax code. Is there a template that always >> uses the online version of mathjax for html exports independent of the >> setup from my local machine? >> >> best Max >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From seb at wilzba.ch Fri Feb 6 08:48:33 2015 From: seb at wilzba.ch (Sebastian Wilzbach) Date: Fri, 06 Feb 2015 14:48:33 +0100 Subject: [IPython-dev] [GSoC 2015]: BioJS components pluggable into IPython Message-ID: <54D4C631.8060904@wilzba.ch> Dear IPython developers, (I don't know whether this mailing list is the correct place for this question - I am happy to proceed with this discussion on the appropriate place) I am one of the developers of BioJS. If you never heard about BioJS: It is a very young project that aims to build reusable JavaScript components for life sciences. One of the coolest projects that we have built lately is the BioJS registry at biojs.io So why do I write you? ---------------------- Python and IPython are very popular among Bioinformaticians (e.g. BioPython) and we would like to make our visualizations components easily accessible for IPython users. One example is that instead of showing raw sequences in JSON or a "pre"-block, we could use an interactive multiple sequence alignment viewer. We have started to work on a similar project for Galaxy [1] and some time ago I opened a Github issue about the IPython inclusion on the BioJS github repo [2]. Unfortunately we currently lack the resources to concentrate fully on shipping widgets to IPython. Hence we consider to propose a GSoC project which at least partially will be about this integration. (As 3 months even with a learning period is a long time we could wrap some other widget-related issues from IPython into this project) So here is my question: Is there anyone on this list interested in this project and maybe even in providing guidance as a GSoC mentor from the IPython team? (I imagine that we would have one BioJS & one IPython mentor) If you have a spontaneous idea or remark(s) related to this project, don't hesitate to let me know. Cheers, Seb [1] https://github.com/biojs/biojs2galaxy [2] https://github.com/biojs/biojs/issues/111 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3958 bytes Desc: S/MIME Cryptographic Signature URL: From john at omernik.com Fri Feb 6 11:05:12 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 10:05:12 -0600 Subject: [IPython-dev] Different users - Auto Save - Clobbering Message-ID: Hey all, I know iPython Notebooks isn't quite multiuser, but in the mean time, I have a question I am having a hard time answering. I have a process right now where someone will be going in and editing and creating notebooks. This is my "writer" (at this point we are in a trusted env, therefore we are just using the same iPython Notebook server) If he opens a notebook, and then adds a bunch of stuff and keeps it open. Then someone else connects to the same notebook, but just observers... will the autosave on the "quasi" read only person's computer clobber changes made by the first? Should I setup a system to allow on read only access of the other users? Until iPython gets true multiusers, how could I approach this? Thanks! John From doug.blank at gmail.com Fri Feb 6 11:20:40 2015 From: doug.blank at gmail.com (Doug Blank) Date: Fri, 6 Feb 2015 11:20:40 -0500 Subject: [IPython-dev] [GSoC 2015]: BioJS components pluggable into IPython In-Reply-To: <54D4C631.8060904@wilzba.ch> References: <54D4C631.8060904@wilzba.ch> Message-ID: Seb, I suspect that there will be a few people interested in your project, for using and for helping! I will be co-teaching a Bio + CS intro (a course that serves as both an intro to CS and an intro to Biology) in two semesters, and these sound very useful in the classroom. If you find yourself still looking for someone as a mentor, please contact me. -Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Fri Feb 6 12:37:54 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 6 Feb 2015 09:37:54 -0800 Subject: [IPython-dev] Different users - Auto Save - Clobbering In-Reply-To: References: Message-ID: Hi John, Le 6 f?vr. 2015 ? 08:05, John Omernik a ?crit : > Hey all, I know iPython Notebooks isn't quite multiuser, but in the > mean time, I have a question I am having a hard time answering. > > I have a process right now where someone will be going in and editing > and creating notebooks. This is my "writer" (at this point we are > in a trusted env, therefore we are just using the same iPython > Notebook server) > > If he opens a notebook, and then adds a bunch of stuff and keeps it > open. Then someone else connects to the same notebook, but just > observers... will the autosave on the "quasi" read only person's > computer clobber changes made by the first? Yes. Though the auto save might not trigger if the notebook is really not changed. > Should I setup a system to > allow on read only access of the other users? Probably, have a look at Jupyterhub: https://github.com/jupyter/jupyterhub Which is multi-user in a ro/rw fashion. you can also add an extension that auto reaload for the "reader" Hope that helps until we have true live collaboration. -- M -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Fri Feb 6 12:43:17 2015 From: doug.blank at gmail.com (Doug Blank) Date: Fri, 6 Feb 2015 12:43:17 -0500 Subject: [IPython-dev] Different users - Auto Save - Clobbering In-Reply-To: References: Message-ID: I think that this will help in IPython 3: https://github.com/ipython/ipython/pull/7576 -Doug On Fri, Feb 6, 2015 at 11:05 AM, John Omernik wrote: > Hey all, I know iPython Notebooks isn't quite multiuser, but in the > mean time, I have a question I am having a hard time answering. > > I have a process right now where someone will be going in and editing > and creating notebooks. This is my "writer" (at this point we are > in a trusted env, therefore we are just using the same iPython > Notebook server) > > If he opens a notebook, and then adds a bunch of stuff and keeps it > open. Then someone else connects to the same notebook, but just > observers... will the autosave on the "quasi" read only person's > computer clobber changes made by the first? Should I setup a system to > allow on read only access of the other users? > > Until iPython gets true multiusers, how could I approach this? > > Thanks! > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Fri Feb 6 13:45:19 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 6 Feb 2015 10:45:19 -0800 Subject: [IPython-dev] [GSoC 2015]: BioJS components pluggable into IPython In-Reply-To: <54D4C631.8060904@wilzba.ch> References: <54D4C631.8060904@wilzba.ch> Message-ID: Hi Sebastian Le 6 f?vr. 2015 ? 05:48, Sebastian Wilzbach a ?crit : > Dear IPython developers, > > (I don't know whether this mailing list is the correct place for this question - I am happy to proceed with this discussion on the appropriate place) Yes this is a really good place to ask, I'll have more comment about that bellow though. > > I am one of the developers of BioJS. > If you never heard about BioJS: It is a very young project that aims to build reusable JavaScript components for life sciences. > One of the coolest projects that we have built lately is the BioJS registry at biojs.io > > So why do I write you? > ---------------------- > > Python and IPython are very popular among Bioinformaticians (e.g. BioPython) and we would like to make our visualizations components easily accessible for IPython users. > One example is that instead of showing raw sequences in JSON or a "pre"-block, we could use an interactive multiple sequence alignment viewer. From what I can tell, your component are mostly javascript, though I guess they could be use with non-python kernels. Hence I would suggest reaching wider like on the jupyter mailing list/google group (though it's still young) an directly with other kernels. (https://groups.google.com/forum/#!forum/jupyter) > We have started to work on a similar project for Galaxy [1] and some time ago I opened a Github issue about the IPython inclusion on the BioJS github repo [2]. > Unfortunately we currently lack the resources to concentrate fully on shipping widgets to IPython. > Hence we consider to propose a GSoC project which at least partially will be about this integration. > (As 3 months even with a learning period is a long time we could wrap some other widget-related issues from IPython into this project) I think we are more or less in the same state, with a limited resource. We will be splitting the widget repository as a standalone project in the next few month, which should make contributing easier. > So here is my question: > > Is there anyone on this list interested in this project and maybe even in providing guidance as a GSoC mentor from the IPython team? > (I imagine that we would have one BioJS & one IPython mentor) We wil be happy to help, I can't definitively say wether or not we can have a mentor, but the situation have not changed a lot since the last requests we had, so I would expect a no. > If you have a spontaneous idea or remark(s) related to this project, don't hesitate to let me know. I'll add that to our regular meeting, to see if we think of something. Thanks, -- Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 6 14:54:55 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 13:54:55 -0600 Subject: [IPython-dev] iPython 3 vs Jupyter etc Message-ID: Is there a clear strategy for how iPython will or won't be merging with Jupyterhub. I'd like to start doing some dev/testing work with non-released builds but want to make sure I understand how the progression will occur. Is iPython going to be just another shell for the Jupyterhub and thus without Jupyterhub iPython support will fall away? is it a renaming with a broader focus? etc etc Thanks! John From takowl at gmail.com Fri Feb 6 15:09:40 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Feb 2015 12:09:40 -0800 Subject: [IPython-dev] iPython 3 vs Jupyter etc In-Reply-To: References: Message-ID: Jupyter is going to be a suite of related projects for interactive computing in multiple languages. *Jupyterhub* is one of the first projects using that naming umbrella, and is responsible for running what we currently call IPython Notebook servers for multiple users. We will be splitting up the code currently called IPython into several parts, most of which will be called Jupyter. The IPython Notebook (the application) will become the Jupyter Notebook. There is no plan to merge this into Jupyterhub - that is a separate project under the Jupyter name. So you will definitely still be able to run the notebook server without Jupyterhub. The Notebook application will be able to work with notebooks written in different programming languages (this is already working in master). After we split up the project currently called IPython, the bits specific to running and interacting with Python code will continue to be called IPython, while the parts that work for any language will be called Jupyter. I hope that clarifies the changes a bit. Thomas On 6 February 2015 at 11:54, John Omernik wrote: > Is there a clear strategy for how iPython will or won't be merging > with Jupyterhub. I'd like to start doing some dev/testing work with > non-released builds but want to make sure I understand how the > progression will occur. Is iPython going to be just another shell for > the Jupyterhub and thus without Jupyterhub iPython support will fall > away? is it a renaming with a broader focus? etc etc > > > Thanks! > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 6 15:12:54 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 14:12:54 -0600 Subject: [IPython-dev] iPython 3 vs Jupyter etc In-Reply-To: References: Message-ID: So Jupyter isn't a fork or something that's going to force historic users of iPython to choose one or the other at some point. I guess that's my biggest issue, I don't want to be going down the road and have to pick a fork, or I guess, if I do HAVE to pick a fork, I want to know which one to take. It sounds like with what you said, that these projects are going to working to integrate rather than divest. That sounds good to me :) On Fri, Feb 6, 2015 at 2:09 PM, Thomas Kluyver wrote: > Jupyter is going to be a suite of related projects for interactive computing > in multiple languages. *Jupyterhub* is one of the first projects using that > naming umbrella, and is responsible for running what we currently call > IPython Notebook servers for multiple users. > > We will be splitting up the code currently called IPython into several > parts, most of which will be called Jupyter. The IPython Notebook (the > application) will become the Jupyter Notebook. There is no plan to merge > this into Jupyterhub - that is a separate project under the Jupyter name. So > you will definitely still be able to run the notebook server without > Jupyterhub. > > The Notebook application will be able to work with notebooks written in > different programming languages (this is already working in master). After > we split up the project currently called IPython, the bits specific to > running and interacting with Python code will continue to be called IPython, > while the parts that work for any language will be called Jupyter. > > I hope that clarifies the changes a bit. > > Thomas > > On 6 February 2015 at 11:54, John Omernik wrote: >> >> Is there a clear strategy for how iPython will or won't be merging >> with Jupyterhub. I'd like to start doing some dev/testing work with >> non-released builds but want to make sure I understand how the >> progression will occur. Is iPython going to be just another shell for >> the Jupyterhub and thus without Jupyterhub iPython support will fall >> away? is it a renaming with a broader focus? etc etc >> >> >> Thanks! >> >> John >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From bussonniermatthias at gmail.com Fri Feb 6 15:16:20 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 6 Feb 2015 12:16:20 -0800 Subject: [IPython-dev] iPython 3 vs Jupyter etc In-Reply-To: References: Message-ID: <0AC2596E-05C1-4B2F-9452-334ECCE7F75B@gmail.com> Hi John, No, IPython will not merge with Jupyterhub. Jupyterhub will be the way to use Jupyter in multiuser environment. IPython will be split into many sub projects. You will be able to use ipython terminal shell without Jupyter. Basically after 3.0 is released we will create (roughly) the following repo. Jupyterhub Jupyter-notebook Nbconvert Nbformat Qtconsole IPython (the terminal shell) IPython (the kernel that works with Notebook, qtconsole) Widgets, Traitlets Config I wrote a bit about that : http://carreau.github.io/posts/15-Jupyter.html Thomas already responded to you while I was writing that. So no, Jupyter is not a fork. We are Jupyter. As you need to install tornado to have IPython notebook, you will just need more dependencies. The "renaming" is just here to make people understand that we are not only Python, we have ~26 kernels (cf ipython wiki) Does that make sens ? -- M Le 6 f?vr. 2015 ? 11:54, John Omernik a ?crit : > Is there a clear strategy for how iPython will or won't be merging > with Jupyterhub. I'd like to start doing some dev/testing work with > non-released builds but want to make sure I understand how the > progression will occur. Is iPython going to be just another shell for > the Jupyterhub and thus without Jupyterhub iPython support will fall > away? is it a renaming with a broader focus? etc etc > > > Thanks! > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 6 15:18:27 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 14:18:27 -0600 Subject: [IPython-dev] iPython 3 vs Jupyter etc In-Reply-To: <0AC2596E-05C1-4B2F-9452-334ECCE7F75B@gmail.com> References: <0AC2596E-05C1-4B2F-9452-334ECCE7F75B@gmail.com> Message-ID: Yep a bit. I will say that it may be worth someone's effort to put that on the iPython.org website or something. Just clarifying what is what and what is on the roadmap. I think there may be a number of people who want to dip their foot in the water, but may hesitate out of confusion. Thanks for the clarification. On Fri, Feb 6, 2015 at 2:16 PM, Matthias Bussonnier wrote: > Hi John, > > No, IPython will not merge with Jupyterhub. > Jupyterhub will be the way to use Jupyter in multiuser environment. > > IPython will be split into many sub projects. You will be able to use > ipython terminal shell without Jupyter. > > Basically after 3.0 is released we will create (roughly) the following repo. > > Jupyterhub > Jupyter-notebook > Nbconvert > Nbformat > Qtconsole > IPython (the terminal shell) > IPython (the kernel that works with Notebook, qtconsole) > Widgets, > Traitlets > Config > > I wrote a bit about that : > http://carreau.github.io/posts/15-Jupyter.html > > > Thomas already responded to you while I was writing that. > So no, Jupyter is not a fork. We are Jupyter. > As you need to install tornado to have IPython notebook, > you will just need more dependencies. > > The "renaming" is just here to make people understand that > we are not only Python, we have ~26 kernels (cf ipython wiki) > > > Does that make sens ? > > -- > M > > > > Le 6 f?vr. 2015 ? 11:54, John Omernik a ?crit : > > Is there a clear strategy for how iPython will or won't be merging > with Jupyterhub. I'd like to start doing some dev/testing work with > non-released builds but want to make sure I understand how the > progression will occur. Is iPython going to be just another shell for > the Jupyterhub and thus without Jupyterhub iPython support will fall > away? is it a renaming with a broader focus? etc etc > > > Thanks! > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From john at omernik.com Fri Feb 6 15:19:34 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 14:19:34 -0600 Subject: [IPython-dev] iPython 3.0-dev --matplotlib inline Message-ID: In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am getting [C 14:16:28.361 NotebookApp] Bad config encountered during initialization: [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib' Any thoughts? Do I need to change something to have the same affect? Thanks John From benjaminrk at gmail.com Fri Feb 6 15:24:57 2015 From: benjaminrk at gmail.com (MinRK) Date: Fri, 6 Feb 2015 12:24:57 -0800 Subject: [IPython-dev] iPython 3.0-dev --matplotlib inline In-Reply-To: References: Message-ID: Passing kernel arguments on the notebook server CLI was deprecated in 2.0, and removed in 3.0. You can use the `%matplotlib inline` magic in your notebook to set up matplotlib, or enable matplotlib in your `ipython_config.py` or startup files in your IPython profile. -MinRK On Fri, Feb 6, 2015 at 12:19 PM, John Omernik wrote: > In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am > getting > > [C 14:16:28.361 NotebookApp] Bad config encountered during initialization: > > [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib' > > Any thoughts? Do I need to change something to have the same affect? > > Thanks > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Fri Feb 6 15:27:28 2015 From: benjaminrk at gmail.com (MinRK) Date: Fri, 6 Feb 2015 12:27:28 -0800 Subject: [IPython-dev] iPython 3.0-dev --matplotlib inline In-Reply-To: References: Message-ID: For completeness, you can create a startup file that always enables inline matplotlib with: echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py ? On Fri, Feb 6, 2015 at 12:24 PM, MinRK wrote: > Passing kernel arguments on the notebook server CLI was deprecated in 2.0, > and removed in 3.0. You can use the `%matplotlib inline` magic in your > notebook to set up matplotlib, or enable matplotlib in your > `ipython_config.py` or startup files in your IPython profile. > > -MinRK > > On Fri, Feb 6, 2015 at 12:19 PM, John Omernik wrote: > >> In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am >> getting >> >> [C 14:16:28.361 NotebookApp] Bad config encountered during initialization: >> >> [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib' >> >> Any thoughts? Do I need to change something to have the same affect? >> >> Thanks >> >> John >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 6 15:38:46 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 14:38:46 -0600 Subject: [IPython-dev] iPython 3 vs Jupyter etc In-Reply-To: References: <0AC2596E-05C1-4B2F-9452-334ECCE7F75B@gmail.com> Message-ID: One silly question: I've install iPython 3.0 Dev. (First let me say nice work folks, looks great). I am still running Python 2.7 as my shell, and for analytics, it's where I am comfortable. for Jupyterhub, it requires iPython 3.0 and Python 3. Is that requirement only to run the hub itself, or will I need to run all my iPython kernals as python 3 as well? I installed python3 with apt-get, and that was my next "step" On Fri, Feb 6, 2015 at 2:18 PM, John Omernik wrote: > Yep a bit. I will say that it may be worth someone's effort to put > that on the iPython.org website or something. Just clarifying what is > what and what is on the roadmap. I think there may be a number of > people who want to dip their foot in the water, but may hesitate out > of confusion. > > Thanks for the clarification. > > > > On Fri, Feb 6, 2015 at 2:16 PM, Matthias Bussonnier > wrote: >> Hi John, >> >> No, IPython will not merge with Jupyterhub. >> Jupyterhub will be the way to use Jupyter in multiuser environment. >> >> IPython will be split into many sub projects. You will be able to use >> ipython terminal shell without Jupyter. >> >> Basically after 3.0 is released we will create (roughly) the following repo. >> >> Jupyterhub >> Jupyter-notebook >> Nbconvert >> Nbformat >> Qtconsole >> IPython (the terminal shell) >> IPython (the kernel that works with Notebook, qtconsole) >> Widgets, >> Traitlets >> Config >> >> I wrote a bit about that : >> http://carreau.github.io/posts/15-Jupyter.html >> >> >> Thomas already responded to you while I was writing that. >> So no, Jupyter is not a fork. We are Jupyter. >> As you need to install tornado to have IPython notebook, >> you will just need more dependencies. >> >> The "renaming" is just here to make people understand that >> we are not only Python, we have ~26 kernels (cf ipython wiki) >> >> >> Does that make sens ? >> >> -- >> M >> >> >> >> Le 6 f?vr. 2015 ? 11:54, John Omernik a ?crit : >> >> Is there a clear strategy for how iPython will or won't be merging >> with Jupyterhub. I'd like to start doing some dev/testing work with >> non-released builds but want to make sure I understand how the >> progression will occur. Is iPython going to be just another shell for >> the Jupyterhub and thus without Jupyterhub iPython support will fall >> away? is it a renaming with a broader focus? etc etc >> >> >> Thanks! >> >> John >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> From bussonniermatthias at gmail.com Fri Feb 6 16:40:32 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 6 Feb 2015 13:40:32 -0800 Subject: [IPython-dev] iPython 3 vs Jupyter etc In-Reply-To: References: <0AC2596E-05C1-4B2F-9452-334ECCE7F75B@gmail.com> Message-ID: <5EB30D9F-E95F-43D9-B806-B27B39F45756@gmail.com> Le 6 f?vr. 2015 ? 12:18, John Omernik a ?crit : > Yep a bit. I will say that it may be worth someone's effort to put > that on the iPython.org website or something. Just clarifying what is > what and what is on the roadmap. I think there may be a number of > people who want to dip their foot in the water, but may hesitate out > of confusion. > > Thanks for the clarification. Yes, there or on jupyter.org We know we are bad at communicating. If anyone reading want to contribute and is afraid of coding, writing things like that on the website would be a perfect way to contribute and would be of great help to everyone. Le 6 f?vr. 2015 ? 12:38, John Omernik a ?crit : > One silly question: > > I've install iPython 3.0 Dev. (First let me say nice work folks, looks > great). I am still running Python 2.7 as my shell, and for analytics, > it's where I am comfortable. for Jupyterhub, it requires iPython 3.0 > and Python 3. Is that requirement only to run the hub itself, or will > I need to run all my iPython kernals as python 3 as well? I installed > python3 with apt-get, and that was my next "step" Not silly at all. You can perfectly run IPython 3 with Python 3 and kernels on Python 2. for the time being you will need to install IPython notebook with python 2 and issue a $ ipython2 kernelspec install-self This will make the IPython2 kernel available with IPython3 server running on python 3. -- M From takowl at gmail.com Fri Feb 6 16:42:56 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Feb 2015 13:42:56 -0800 Subject: [IPython-dev] iPython 3 vs Jupyter etc In-Reply-To: References: <0AC2596E-05C1-4B2F-9452-334ECCE7F75B@gmail.com> Message-ID: On 6 February 2015 at 12:38, John Omernik wrote: > I am still running Python 2.7 as my shell, and for analytics, > it's where I am comfortable. for Jupyterhub, it requires iPython 3.0 > and Python 3. Is that requirement only to run the hub itself, or will > I need to run all my iPython kernals as python 3 as well? > It's only for the hub - you can still run kernels and the notebook server itself using Python 2. At some point, we might make the notebook server require Python 3, but even then, you will be able to run Python 2 kernels inside it. And we haven't decided if/when we're doing that, anyway. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Fri Feb 6 17:31:38 2015 From: kikocorreoso at gmail.com (Kiko) Date: Fri, 6 Feb 2015 23:31:38 +0100 Subject: [IPython-dev] ipy2wp extension update Message-ID: Hi all, I updated a little bit ipy2wp (https://github.com/Pybonacci/ipy2wp) to make it more useful. What is ipy2wp? It is a command line tool or a Jupyter extension that helps you to publish a notebook on a wordpress site. As stated before, the updates allow you to publish a notebook from Jupyter frontend in your wordpress site directly from the notebook itself but I found some issues. It works on Linux (and maybe on MacOS) but not in windows. I want the available templates are in the nnbextensions folder in the .ipython dir but there is a problem to use templates from there. I read what MinRK wrote here( https://github.com/ipython/ipython/issues/5529#issuecomment-63016268) and I solved the issue on Linux adding the line https://github.com/Pybonacci/ipy2wp/blob/master/ipy2wp/ipy2wp.py#L20 Is there a correct way to specify the path of the templates in order to make it easily installable and usable by others and to make it work on windows? Thanks. Kind regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Fri Feb 6 19:09:11 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Feb 2015 16:09:11 -0800 Subject: [IPython-dev] [GSoC 2015]: BioJS components pluggable into IPython In-Reply-To: References: <54D4C631.8060904@wilzba.ch> Message-ID: On 6 February 2015 at 10:45, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > We wil be happy to help, I can't definitively say wether or not we can > have a mentor, > but the situation have not changed a lot since the last requests we had, > so I would expect a no. > Previously, though, we've considered mentoring someone on a purely IPython project, and decided that it was too big a time commitment. We may be more amenable to co-mentoring someone on a task that's related to IPython but largely under another project, such as BioJS. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 6 20:59:54 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 19:59:54 -0600 Subject: [IPython-dev] iPython 3.0 Creating a new notebook programatically. Message-ID: Hey all, I have been through the API docs for iPython 3, but I can't figure out how to reproduce this in iPython 3. (It worked in iPython 2.3) http://nbviewer.ipython.org/gist/fperez/9716279 In iPython 3, I get an error at nb['worksheets'].append(nbf.new_worksheet(cells=cells)) I tried some different stuff win imports. I.e. instead of from IPython.nbformat import current as nbf I did from iPython.nbformat import v4 as nbf and some other stuff to get write. But that's where I am currently stuck. Any pointers would be helpful. Basically I want a code that will create a new notebook, and pre fill the few lines. Thanks! John From doug.blank at gmail.com Fri Feb 6 21:13:57 2015 From: doug.blank at gmail.com (Doug Blank) Date: Fri, 6 Feb 2015 21:13:57 -0500 Subject: [IPython-dev] iPython 3.0 Creating a new notebook programatically. In-Reply-To: References: Message-ID: Two changes: 1) You should use a particular notebook format version: nb = IPython.nbformat.v4.new_notebook() 2) Worksheet has been removed; so: nb["cells"].append(IPython.nbformat.v4.new_code_cell("x = 1")) Hope that helps, -Doug On Fri, Feb 6, 2015 at 8:59 PM, John Omernik wrote: > Hey all, I have been through the API docs for iPython 3, but I can't > figure out how to reproduce this in iPython 3. (It worked in iPython > 2.3) > > http://nbviewer.ipython.org/gist/fperez/9716279 > > In iPython 3, I get an error at > nb['worksheets'].append(nbf.new_worksheet(cells=cells)) > > I tried some different stuff win imports. I.e. instead of > > from IPython.nbformat import current as nbf > > I did from iPython.nbformat import v4 as nbf and some other stuff to > get write. But that's where I am currently stuck. Any pointers would > be helpful. Basically I want a code that will create a new notebook, > and pre fill the few lines. > > Thanks! > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Fri Feb 6 21:38:17 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Fri, 6 Feb 2015 18:38:17 -0800 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: My only concern is that not having the full integration done that folks won't really use this much as they will have to create a separate profile and start a new server. If we can get this into 3.1, that would enable a lot more people to try this. As with all of our MVPs, we want to get as many people using it as possible to get feedback. Think about it this way - we have a hypothesis: "lots of current notebook users would like to be able to store notebook on Google Drive." For us to test that hypothesis, we need as much data as possible (even if it is qualitative feedback). If not many people try it out, we can't make any conclusions about what we have built... Cheers, Brian On Wed, Feb 4, 2015 at 12:44 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Quick from the airport. > > No and it was not planned, it was "best effort", "would be great to have > synced release". Jupyter drive is not Ipython. Release schedule is > decoupled. > > Though release of IPython 3.0 is needed for me to actually release JDrive > because it needs it, I can do whatever with JDrive. > > If there are interest in mixed content > And I have time, it might got in before 3.0. But if the use is low I'll > focus on real time API. > > Envoy? de mon iPhone > > Le 3 f?vr. 2015 ? 19:46, Brian Granger a ?crit : > > Are we still planning on merging the branch that enabled "mixed" content > before 3.0? > > On Tue, Feb 3, 2015 at 7:56 AM, Matthias BUSSONNIER < > bussonniermatthias at gmail.com> wrote: > >> Hi all, >> >> You might all have seen that IPython 3.0 Beta was released not so long >> ago. >> First, thanks for the feedback ! >> >> For those unaware, we are working on integration with google >> drive as an extension. >> Thanks to Google and especially to Kester Tong for helping a lot. >> >> You can find the package on PyPI : >> >> https://pypi.python.org/pypi/jupyterdrive >> >> And of course on github : >> >> https://github.com/jupyter/jupyter-drive/issues >> >> You can consider this 0.9 version as a 1.0 Beta, >> there are still a few missing things like duplication of file, >> but the core functionality will mostly be there. >> >> For now you also still need a **separate** IPython server to run with the >> google-drive >> profile. Cf readme.md. >> >> This version **does not** include real-time collaboration. It will need >> some refactor >> that will be done in IPython during the following year. So do expect next >> version >> of jupyterdrive to probably only be compatible with IPython 4.0. >> >> For those interested there is draft branch on github that start to >> implement a "mixed" content >> manager, that would allow with the same IPython server to access both >> local hard drive content >> and google drive one. >> >> As usual, back up your data, Jupyter-drive is much less battle tested >> than IPython itself. >> >> -- >> Matthias >> >> -- >> 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+unsubscribe at googlegroups.com. >> To post to this group, send email to jupyter at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/523B928E-4BC9-47DC-9514-4EB0F5CF3DDE%40gmail.com >> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > @ellisonbg on Twitter and GitHub > bgranger at calpoly.edu and ellisonbg at gmail.com > > -- > 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+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/CAH4pYpRTtPDctpRUEpWvQwgbjbDjbz5W8mSDUhZFcYTXEE2Tyg%40mail.gmail.com > > . > For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/B963F274-56C5-4F71-B85A-D6F8217FDD04%40gmail.com > > . > For more options, visit https://groups.google.com/d/optout. > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 6 21:43:04 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 20:43:04 -0600 Subject: [IPython-dev] iPython 3.0 Creating a new notebook programatically. In-Reply-To: References: Message-ID: Cool, that worked, thank you. Is there a place that I could have derived that from docs? I guess, I don't mind asking on list, especially if others gain benefit, but I also try to figure things out myself, and my research really led me nowhere. If there was a place that wasn't coming up in my searches that would have helped, I'd like to bookmark it. On Fri, Feb 6, 2015 at 8:13 PM, Doug Blank wrote: > Two changes: > > 1) You should use a particular notebook format version: > > nb = IPython.nbformat.v4.new_notebook() > > 2) Worksheet has been removed; so: > > nb["cells"].append(IPython.nbformat.v4.new_code_cell("x = 1")) > > Hope that helps, > > -Doug > > On Fri, Feb 6, 2015 at 8:59 PM, John Omernik wrote: >> >> Hey all, I have been through the API docs for iPython 3, but I can't >> figure out how to reproduce this in iPython 3. (It worked in iPython >> 2.3) >> >> http://nbviewer.ipython.org/gist/fperez/9716279 >> >> In iPython 3, I get an error at >> nb['worksheets'].append(nbf.new_worksheet(cells=cells)) >> >> I tried some different stuff win imports. I.e. instead of >> >> from IPython.nbformat import current as nbf >> >> I did from iPython.nbformat import v4 as nbf and some other stuff to >> get write. But that's where I am currently stuck. Any pointers would >> be helpful. Basically I want a code that will create a new notebook, >> and pre fill the few lines. >> >> Thanks! >> >> John >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From kestert at google.com Fri Feb 6 21:53:01 2015 From: kestert at google.com (Kester Tong) Date: Fri, 6 Feb 2015 21:53:01 -0500 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: Brian, These are all really good points you make. I'm going to see what's missing from the current mixed contents branch, so we can figure out if it's realistic to release with 3.0 or 3.1. The only change in IPython needed is some kind of special folder icon for the Drive mount point (which is /gdrive right now). But I'll try and figure out if any other changes on the IPython side are needed. Kester On Fri, Feb 6, 2015 at 9:38 PM, Brian Granger wrote: > My only concern is that not having the full integration done that folks > won't really use this much as they will have to create a separate profile > and start a new server. If we can get this into 3.1, that would enable a > lot more people to try this. As with all of our MVPs, we want to get as > many people using it as possible to get feedback. > > Think about it this way - we have a hypothesis: "lots of current notebook > users would like to be able to store notebook on Google Drive." > > For us to test that hypothesis, we need as much data as possible (even if > it is qualitative feedback). If not many people try it out, we can't make > any conclusions about what we have built... > > Cheers, > > Brian > > On Wed, Feb 4, 2015 at 12:44 AM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> Quick from the airport. >> >> No and it was not planned, it was "best effort", "would be great to have >> synced release". Jupyter drive is not Ipython. Release schedule is >> decoupled. >> >> Though release of IPython 3.0 is needed for me to actually release JDrive >> because it needs it, I can do whatever with JDrive. >> >> If there are interest in mixed content >> And I have time, it might got in before 3.0. But if the use is low I'll >> focus on real time API. >> >> Envoy? de mon iPhone >> >> Le 3 f?vr. 2015 ? 19:46, Brian Granger a ?crit : >> >> Are we still planning on merging the branch that enabled "mixed" content >> before 3.0? >> >> On Tue, Feb 3, 2015 at 7:56 AM, Matthias BUSSONNIER < >> bussonniermatthias at gmail.com> wrote: >> >>> Hi all, >>> >>> You might all have seen that IPython 3.0 Beta was released not so long >>> ago. >>> First, thanks for the feedback ! >>> >>> For those unaware, we are working on integration with google >>> drive as an extension. >>> Thanks to Google and especially to Kester Tong for helping a lot. >>> >>> You can find the package on PyPI : >>> >>> https://pypi.python.org/pypi/jupyterdrive >>> >>> And of course on github : >>> >>> https://github.com/jupyter/jupyter-drive/issues >>> >>> You can consider this 0.9 version as a 1.0 Beta, >>> there are still a few missing things like duplication of file, >>> but the core functionality will mostly be there. >>> >>> For now you also still need a **separate** IPython server to run with >>> the google-drive >>> profile. Cf readme.md. >>> >>> This version **does not** include real-time collaboration. It will need >>> some refactor >>> that will be done in IPython during the following year. So do expect >>> next version >>> of jupyterdrive to probably only be compatible with IPython 4.0. >>> >>> For those interested there is draft branch on github that start to >>> implement a "mixed" content >>> manager, that would allow with the same IPython server to access both >>> local hard drive content >>> and google drive one. >>> >>> As usual, back up your data, Jupyter-drive is much less battle tested >>> than IPython itself. >>> >>> -- >>> Matthias >>> >>> -- >>> 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+unsubscribe at googlegroups.com. >>> To post to this group, send email to jupyter at googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jupyter/523B928E-4BC9-47DC-9514-4EB0F5CF3DDE%40gmail.com >>> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> @ellisonbg on Twitter and GitHub >> bgranger at calpoly.edu and ellisonbg at gmail.com >> >> -- >> 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+unsubscribe at googlegroups.com. >> To post to this group, send email to jupyter at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/CAH4pYpRTtPDctpRUEpWvQwgbjbDjbz5W8mSDUhZFcYTXEE2Tyg%40mail.gmail.com >> >> . >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> 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+unsubscribe at googlegroups.com. >> To post to this group, send email to jupyter at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/B963F274-56C5-4F71-B85A-D6F8217FDD04%40gmail.com >> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > @ellisonbg on Twitter and GitHub > bgranger at calpoly.edu and ellisonbg at gmail.com > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 6 21:59:57 2015 From: john at omernik.com (John Omernik) Date: Fri, 6 Feb 2015 20:59:57 -0600 Subject: [IPython-dev] Jupyter Hub Doc Issue Message-ID: In the Jupyter Hub, there's JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. You will need nodejs/npm, which you can get from your package manager: sudo apt-get install npm nodejs-legacy (The nodejs-legacy package installs the node executable, which is required for npm to work on Debian/Ubuntu at this point) Then install javascript dependencies: However, I am running Ubuntu 12.04, and there is no nodejs-legacy. How do I meet that requirement? Thanks! From kestert at google.com Fri Feb 6 22:32:21 2015 From: kestert at google.com (Kester Tong) Date: Fri, 6 Feb 2015 22:32:21 -0500 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: After rebasing, the mixedcontents branch seems to work. It seems realistic to me to have this by 3.0. There may be some polishing needed, but the basic functionality is there now. Kester On Fri, Feb 6, 2015 at 9:53 PM, Kester Tong wrote: > Brian, > > These are all really good points you make. I'm going to see what's > missing from the current mixed contents branch, so we can figure out if > it's realistic to release with 3.0 or 3.1. The only change in IPython > needed is some kind of special folder icon for the Drive mount point (which > is /gdrive right now). But I'll try and figure out if any other changes on > the IPython side are needed. > > Kester > > On Fri, Feb 6, 2015 at 9:38 PM, Brian Granger wrote: > >> My only concern is that not having the full integration done that folks >> won't really use this much as they will have to create a separate profile >> and start a new server. If we can get this into 3.1, that would enable a >> lot more people to try this. As with all of our MVPs, we want to get as >> many people using it as possible to get feedback. >> >> Think about it this way - we have a hypothesis: "lots of current notebook >> users would like to be able to store notebook on Google Drive." >> >> For us to test that hypothesis, we need as much data as possible (even if >> it is qualitative feedback). If not many people try it out, we can't make >> any conclusions about what we have built... >> >> Cheers, >> >> Brian >> >> On Wed, Feb 4, 2015 at 12:44 AM, Matthias Bussonnier < >> bussonniermatthias at gmail.com> wrote: >> >>> Quick from the airport. >>> >>> No and it was not planned, it was "best effort", "would be great to have >>> synced release". Jupyter drive is not Ipython. Release schedule is >>> decoupled. >>> >>> Though release of IPython 3.0 is needed for me to actually release >>> JDrive because it needs it, I can do whatever with JDrive. >>> >>> If there are interest in mixed content >>> And I have time, it might got in before 3.0. But if the use is low I'll >>> focus on real time API. >>> >>> Envoy? de mon iPhone >>> >>> Le 3 f?vr. 2015 ? 19:46, Brian Granger a ?crit : >>> >>> Are we still planning on merging the branch that enabled "mixed" content >>> before 3.0? >>> >>> On Tue, Feb 3, 2015 at 7:56 AM, Matthias BUSSONNIER < >>> bussonniermatthias at gmail.com> wrote: >>> >>>> Hi all, >>>> >>>> You might all have seen that IPython 3.0 Beta was released not so long >>>> ago. >>>> First, thanks for the feedback ! >>>> >>>> For those unaware, we are working on integration with google >>>> drive as an extension. >>>> Thanks to Google and especially to Kester Tong for helping a lot. >>>> >>>> You can find the package on PyPI : >>>> >>>> https://pypi.python.org/pypi/jupyterdrive >>>> >>>> And of course on github : >>>> >>>> https://github.com/jupyter/jupyter-drive/issues >>>> >>>> You can consider this 0.9 version as a 1.0 Beta, >>>> there are still a few missing things like duplication of file, >>>> but the core functionality will mostly be there. >>>> >>>> For now you also still need a **separate** IPython server to run with >>>> the google-drive >>>> profile. Cf readme.md. >>>> >>>> This version **does not** include real-time collaboration. It will need >>>> some refactor >>>> that will be done in IPython during the following year. So do expect >>>> next version >>>> of jupyterdrive to probably only be compatible with IPython 4.0. >>>> >>>> For those interested there is draft branch on github that start to >>>> implement a "mixed" content >>>> manager, that would allow with the same IPython server to access both >>>> local hard drive content >>>> and google drive one. >>>> >>>> As usual, back up your data, Jupyter-drive is much less battle tested >>>> than IPython itself. >>>> >>>> -- >>>> Matthias >>>> >>>> -- >>>> 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+unsubscribe at googlegroups.com. >>>> To post to this group, send email to jupyter at googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jupyter/523B928E-4BC9-47DC-9514-4EB0F5CF3DDE%40gmail.com >>>> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Brian E. Granger >>> Cal Poly State University, San Luis Obispo >>> @ellisonbg on Twitter and GitHub >>> bgranger at calpoly.edu and ellisonbg at gmail.com >>> >>> -- >>> 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+unsubscribe at googlegroups.com. >>> To post to this group, send email to jupyter at googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jupyter/CAH4pYpRTtPDctpRUEpWvQwgbjbDjbz5W8mSDUhZFcYTXEE2Tyg%40mail.gmail.com >>> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> 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+unsubscribe at googlegroups.com. >>> To post to this group, send email to jupyter at googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jupyter/B963F274-56C5-4F71-B85A-D6F8217FDD04%40gmail.com >>> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> @ellisonbg on Twitter and GitHub >> bgranger at calpoly.edu and ellisonbg at gmail.com >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Sat Feb 7 00:03:51 2015 From: wes.turner at gmail.com (Wes Turner) Date: Fri, 6 Feb 2015 23:03:51 -0600 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: https://github.com/joyent/node/wiki/installing-node.js-via-package-manager https://github.com/saltstack-formulas/node-formula https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit https://registry.hub.docker.com/u/jupyter/jupyterhub/ On Feb 6, 2015 9:00 PM, "John Omernik" wrote: > In the Jupyter Hub, there's > > JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. > > You will need nodejs/npm, which you can get from your package manager: > > sudo apt-get install npm nodejs-legacy > > (The nodejs-legacy package installs the node executable, which is > required for npm to work on Debian/Ubuntu at this point) > > Then install javascript dependencies: > > > However, I am running Ubuntu 12.04, and there is no nodejs-legacy. > How do I meet that requirement? > > Thanks! > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Sat Feb 7 00:05:50 2015 From: wes.turner at gmail.com (Wes Turner) Date: Fri, 6 Feb 2015 23:05:50 -0600 Subject: [IPython-dev] iPython 3.0 Creating a new notebook programatically. In-Reply-To: References: Message-ID: On Feb 6, 2015 8:43 PM, "John Omernik" wrote: > > Cool, that worked, thank you. Is there a place that I could have > derived that from docs? https://github.com/ipython/ipython/tree/master/docs/source -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Sat Feb 7 01:00:51 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 6 Feb 2015 22:00:51 -0800 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> Message-ID: <70ED894B-E84A-488A-9646-EA0FD418B4A1@gmail.com> Le 6 f?vr. 2015 ? 18:38, Brian Granger a ?crit : > My only concern is that not having the full integration done that folks won't really use this much as they will have to create a separate profile and start a new server. If we can get this into 3.1, that would enable a lot more people to try this. As with all of our MVPs, we want to get as many people using it as possible to get feedback. I'll re-have a look then, but I still believe the schedule is unrelated to IPython. We don't need to release a 3.1 for mixed content to work. Le 6 f?vr. 2015 ? 19:32, 'Kester Tong' via Project Jupyter a ?crit : > After rebasing, the mixedcontents branch seems to work. It seems realistic to me to have this by 3.0. There may be some polishing needed, but the basic functionality is there now. I'll have a look tomorrow. I'll re-look at the implementation but I think we could even have an even more generic mixed content manager than takes N contents manager and prefixes and exposes each of them. I suppose we could probably try with Scott (IIRC) postgres backend as an exercise. -- M From takowl at gmail.com Sat Feb 7 02:12:01 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Feb 2015 23:12:01 -0800 Subject: [IPython-dev] iPython 3.0 Creating a new notebook programatically. In-Reply-To: References: Message-ID: I don't think a link to the entire docs folder is what he was asking for. John, the nbformat APIs have the generated API docs, but I don't think we have any narrative docs about programmatically creating notebooks, or a summary of how the nbformat API has changed. Both of those would be good to have. Thomas On 6 Feb 2015 21:05, "Wes Turner" wrote: > > On Feb 6, 2015 8:43 PM, "John Omernik" wrote: > > > > Cool, that worked, thank you. Is there a place that I could have > > derived that from docs? > > https://github.com/ipython/ipython/tree/master/docs/source > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Sat Feb 7 05:52:25 2015 From: john at omernik.com (John Omernik) Date: Sat, 7 Feb 2015 04:52:25 -0600 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: Thank you Wes I am trying that. That said, when the documentation says do this "nodejs-legacy" and it doesn't work, as an end user you wonder "well, wait, that isn't what I was told to install, yes I could just install from this other repository,but that isn't what the documentation calls for, but will it be what the Jupyter Hub requires? Will it sorta work and possibly provide me other issues that I have to spend time on, etc. Just an observation as an end user. On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner wrote: > https://github.com/joyent/node/wiki/installing-node.js-via-package-manager > > https://github.com/saltstack-formulas/node-formula > > https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit > > https://registry.hub.docker.com/u/jupyter/jupyterhub/ > > On Feb 6, 2015 9:00 PM, "John Omernik" wrote: >> >> In the Jupyter Hub, there's >> >> JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. >> >> You will need nodejs/npm, which you can get from your package manager: >> >> sudo apt-get install npm nodejs-legacy >> >> (The nodejs-legacy package installs the node executable, which is >> required for npm to work on Debian/Ubuntu at this point) >> >> Then install javascript dependencies: >> >> >> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. >> How do I meet that requirement? >> >> Thanks! >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From john at omernik.com Sat Feb 7 05:55:47 2015 From: john at omernik.com (John Omernik) Date: Sat, 7 Feb 2015 04:55:47 -0600 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: As a follow-up, I did the above top link to install repository, now when I try to do npm, I get: sudo apt-get install npm Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: npm : Depends: nodejs but it is not going to be installed Depends: nodejs-dev Depends: node-request but it is not going to be installed Depends: node-mkdirp but it is not going to be installed Depends: node-minimatch but it is not going to be installed Depends: node-semver but it is not going to be installed Depends: node-ini but it is not going to be installed Depends: node-graceful-fs but it is not going to be installed Depends: node-abbrev but it is not going to be installed Depends: node-nopt but it is not going to be installed Depends: node-fstream but it is not going to be installed Depends: node-rimraf but it is not going to be installed Depends: node-tar but it is not going to be installed Depends: node-which but it is not going to be installed E: Unable to correct problems, you have held broken packages. On Sat, Feb 7, 2015 at 4:52 AM, John Omernik wrote: > Thank you Wes I am trying that. > > That said, when the documentation says do this "nodejs-legacy" and it > doesn't work, as an end user you wonder "well, wait, that isn't what I > was told to install, yes I could just install from this other > repository,but that isn't what the documentation calls for, but will > it be what the Jupyter Hub requires? Will it sorta work and possibly > provide me other issues that I have to spend time on, etc. Just an > observation as an end user. > > On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner wrote: >> https://github.com/joyent/node/wiki/installing-node.js-via-package-manager >> >> https://github.com/saltstack-formulas/node-formula >> >> https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit >> >> https://registry.hub.docker.com/u/jupyter/jupyterhub/ >> >> On Feb 6, 2015 9:00 PM, "John Omernik" wrote: >>> >>> In the Jupyter Hub, there's >>> >>> JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. >>> >>> You will need nodejs/npm, which you can get from your package manager: >>> >>> sudo apt-get install npm nodejs-legacy >>> >>> (The nodejs-legacy package installs the node executable, which is >>> required for npm to work on Debian/Ubuntu at this point) >>> >>> Then install javascript dependencies: >>> >>> >>> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. >>> How do I meet that requirement? >>> >>> Thanks! >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> From wes.turner at gmail.com Sat Feb 7 07:10:24 2015 From: wes.turner at gmail.com (Wes Turner) Date: Sat, 7 Feb 2015 06:10:24 -0600 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: Have you tried the already-configured docker image? On Feb 7, 2015 4:56 AM, "John Omernik" wrote: > As a follow-up, I did the above top link to install repository, now > when I try to do npm, I get: > > sudo apt-get install npm > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Some packages could not be installed. This may mean that you have > > requested an impossible situation or if you are using the unstable > > distribution that some required packages have not yet been created > > or been moved out of Incoming. > > The following information may help to resolve the situation: > > > The following packages have unmet dependencies: > > npm : Depends: nodejs but it is not going to be installed > > Depends: nodejs-dev > > Depends: node-request but it is not going to be installed > > Depends: node-mkdirp but it is not going to be installed > > Depends: node-minimatch but it is not going to be installed > > Depends: node-semver but it is not going to be installed > > Depends: node-ini but it is not going to be installed > > Depends: node-graceful-fs but it is not going to be installed > > Depends: node-abbrev but it is not going to be installed > > Depends: node-nopt but it is not going to be installed > > Depends: node-fstream but it is not going to be installed > > Depends: node-rimraf but it is not going to be installed > > Depends: node-tar but it is not going to be installed > > Depends: node-which but it is not going to be installed > > E: Unable to correct problems, you have held broken packages. > > > > On Sat, Feb 7, 2015 at 4:52 AM, John Omernik wrote: > > Thank you Wes I am trying that. > > > > That said, when the documentation says do this "nodejs-legacy" and it > > doesn't work, as an end user you wonder "well, wait, that isn't what I > > was told to install, yes I could just install from this other > > repository,but that isn't what the documentation calls for, but will > > it be what the Jupyter Hub requires? Will it sorta work and possibly > > provide me other issues that I have to spend time on, etc. Just an > > observation as an end user. > > > > On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner > wrote: > >> > https://github.com/joyent/node/wiki/installing-node.js-via-package-manager > >> > >> https://github.com/saltstack-formulas/node-formula > >> > >> > https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit > >> > >> https://registry.hub.docker.com/u/jupyter/jupyterhub/ > >> > >> On Feb 6, 2015 9:00 PM, "John Omernik" wrote: > >>> > >>> In the Jupyter Hub, there's > >>> > >>> JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. > >>> > >>> You will need nodejs/npm, which you can get from your package manager: > >>> > >>> sudo apt-get install npm nodejs-legacy > >>> > >>> (The nodejs-legacy package installs the node executable, which is > >>> required for npm to work on Debian/Ubuntu at this point) > >>> > >>> Then install javascript dependencies: > >>> > >>> > >>> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. > >>> How do I meet that requirement? > >>> > >>> Thanks! > >>> _______________________________________________ > >>> IPython-dev mailing list > >>> IPython-dev at scipy.org > >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Sat Feb 7 07:23:02 2015 From: doug.blank at gmail.com (Doug Blank) Date: Sat, 7 Feb 2015 07:23:02 -0500 Subject: [IPython-dev] iPython 3.0 Creating a new notebook programatically. In-Reply-To: References: Message-ID: On Fri, Feb 6, 2015 at 9:43 PM, John Omernik wrote: > Cool, that worked, thank you. Is there a place that I could have > derived that from docs? I guess, I don't mind asking on list, > especially if others gain benefit, but I also try to figure things out > myself, and my research really led me nowhere. If there was a place > that wasn't coming up in my searches that would have helped, I'd like > to bookmark it. > I spend a bit of time interactively exploring what is available by just pressing TAB. For example, if you import the library: In[ ]: import IPython.nbformat And then type: In[ ]: IPython.nbformat. ... and press TAB, you'll see all of the methods available, Type a few letters and then press TAB again and it will complete the name. Put a question mark after the function (or press Shift+TAB in the notebook) and you'll see a brief explanation. Two question marks on the end will show the source code. -Doug > > > > On Fri, Feb 6, 2015 at 8:13 PM, Doug Blank wrote: > > Two changes: > > > > 1) You should use a particular notebook format version: > > > > nb = IPython.nbformat.v4.new_notebook() > > > > 2) Worksheet has been removed; so: > > > > nb["cells"].append(IPython.nbformat.v4.new_code_cell("x = 1")) > > > > Hope that helps, > > > > -Doug > > > > On Fri, Feb 6, 2015 at 8:59 PM, John Omernik wrote: > >> > >> Hey all, I have been through the API docs for iPython 3, but I can't > >> figure out how to reproduce this in iPython 3. (It worked in iPython > >> 2.3) > >> > >> http://nbviewer.ipython.org/gist/fperez/9716279 > >> > >> In iPython 3, I get an error at > >> nb['worksheets'].append(nbf.new_worksheet(cells=cells)) > >> > >> I tried some different stuff win imports. I.e. instead of > >> > >> from IPython.nbformat import current as nbf > >> > >> I did from iPython.nbformat import v4 as nbf and some other stuff to > >> get write. But that's where I am currently stuck. Any pointers would > >> be helpful. Basically I want a code that will create a new notebook, > >> and pre fill the few lines. > >> > >> Thanks! > >> > >> John > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From odewahn at oreilly.com Sat Feb 7 07:43:58 2015 From: odewahn at oreilly.com (Andrew Odewahn) Date: Sat, 7 Feb 2015 07:43:58 -0500 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: > > Have you tried the already-configured docker image? > If you're new to Docker, you might find this short tutorial I wrote on running notebooks with Docker: http://odewahn.github.io/docker-jumpstart/ipython-notebook.html > On Feb 7, 2015 4:56 AM, "John Omernik" wrote: > >> As a follow-up, I did the above top link to install repository, now >> when I try to do npm, I get: >> >> sudo apt-get install npm >> >> Reading package lists... Done >> >> Building dependency tree >> >> Reading state information... Done >> >> Some packages could not be installed. This may mean that you have >> >> requested an impossible situation or if you are using the unstable >> >> distribution that some required packages have not yet been created >> >> or been moved out of Incoming. >> >> The following information may help to resolve the situation: >> >> >> The following packages have unmet dependencies: >> >> npm : Depends: nodejs but it is not going to be installed >> >> Depends: nodejs-dev >> >> Depends: node-request but it is not going to be installed >> >> Depends: node-mkdirp but it is not going to be installed >> >> Depends: node-minimatch but it is not going to be installed >> >> Depends: node-semver but it is not going to be installed >> >> Depends: node-ini but it is not going to be installed >> >> Depends: node-graceful-fs but it is not going to be installed >> >> Depends: node-abbrev but it is not going to be installed >> >> Depends: node-nopt but it is not going to be installed >> >> Depends: node-fstream but it is not going to be installed >> >> Depends: node-rimraf but it is not going to be installed >> >> Depends: node-tar but it is not going to be installed >> >> Depends: node-which but it is not going to be installed >> >> E: Unable to correct problems, you have held broken packages. >> >> >> >> On Sat, Feb 7, 2015 at 4:52 AM, John Omernik wrote: >> > Thank you Wes I am trying that. >> > >> > That said, when the documentation says do this "nodejs-legacy" and it >> > doesn't work, as an end user you wonder "well, wait, that isn't what I >> > was told to install, yes I could just install from this other >> > repository,but that isn't what the documentation calls for, but will >> > it be what the Jupyter Hub requires? Will it sorta work and possibly >> > provide me other issues that I have to spend time on, etc. Just an >> > observation as an end user. >> > >> > On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner >> wrote: >> >> >> https://github.com/joyent/node/wiki/installing-node.js-via-package-manager >> >> >> >> https://github.com/saltstack-formulas/node-formula >> >> >> >> >> https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit >> >> >> >> https://registry.hub.docker.com/u/jupyter/jupyterhub/ >> >> >> >> On Feb 6, 2015 9:00 PM, "John Omernik" wrote: >> >>> >> >>> In the Jupyter Hub, there's >> >>> >> >>> JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. >> >>> >> >>> You will need nodejs/npm, which you can get from your package manager: >> >>> >> >>> sudo apt-get install npm nodejs-legacy >> >>> >> >>> (The nodejs-legacy package installs the node executable, which is >> >>> required for npm to work on Debian/Ubuntu at this point) >> >>> >> >>> Then install javascript dependencies: >> >>> >> >>> >> >>> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. >> >>> How do I meet that requirement? >> >>> >> >>> Thanks! >> >>> _______________________________________________ >> >>> IPython-dev mailing list >> >>> IPython-dev at scipy.org >> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Sat Feb 7 08:34:10 2015 From: john at omernik.com (John Omernik) Date: Sat, 7 Feb 2015 07:34:10 -0600 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: After more research (not in the jupyter docs) I realized that the link Wes provided actually contradicts the Jupyter Hub documentation. Hence why I posted. For anyone having issues with the Jupyter Docs, you nodejs-legacy doesn't work on Ubuntu 12.04, so you have to add the PPA in the link Wes provided. However then, there is a note about apt-get install npm, which will not work with the PPA Wes provided, because of a version conflict and because npm is included in the nodejs package from Wes' link. Wes: Appreciate the reply, but I think the documentation could use some work, and throwing links at people who ask questions based on the current documentation may produce more frustration especially when the links you provide don't line up with the documentation the user is trying to install. I am not upset, I am just pointing out that some users may get frustrated (I am not one of those, but I have worked with many like that). Thanks! John On Sat, Feb 7, 2015 at 4:55 AM, John Omernik wrote: > As a follow-up, I did the above top link to install repository, now > when I try to do npm, I get: > > sudo apt-get install npm > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Some packages could not be installed. This may mean that you have > > requested an impossible situation or if you are using the unstable > > distribution that some required packages have not yet been created > > or been moved out of Incoming. > > The following information may help to resolve the situation: > > > The following packages have unmet dependencies: > > npm : Depends: nodejs but it is not going to be installed > > Depends: nodejs-dev > > Depends: node-request but it is not going to be installed > > Depends: node-mkdirp but it is not going to be installed > > Depends: node-minimatch but it is not going to be installed > > Depends: node-semver but it is not going to be installed > > Depends: node-ini but it is not going to be installed > > Depends: node-graceful-fs but it is not going to be installed > > Depends: node-abbrev but it is not going to be installed > > Depends: node-nopt but it is not going to be installed > > Depends: node-fstream but it is not going to be installed > > Depends: node-rimraf but it is not going to be installed > > Depends: node-tar but it is not going to be installed > > Depends: node-which but it is not going to be installed > > E: Unable to correct problems, you have held broken packages. > > > > On Sat, Feb 7, 2015 at 4:52 AM, John Omernik wrote: >> Thank you Wes I am trying that. >> >> That said, when the documentation says do this "nodejs-legacy" and it >> doesn't work, as an end user you wonder "well, wait, that isn't what I >> was told to install, yes I could just install from this other >> repository,but that isn't what the documentation calls for, but will >> it be what the Jupyter Hub requires? Will it sorta work and possibly >> provide me other issues that I have to spend time on, etc. Just an >> observation as an end user. >> >> On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner wrote: >>> https://github.com/joyent/node/wiki/installing-node.js-via-package-manager >>> >>> https://github.com/saltstack-formulas/node-formula >>> >>> https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit >>> >>> https://registry.hub.docker.com/u/jupyter/jupyterhub/ >>> >>> On Feb 6, 2015 9:00 PM, "John Omernik" wrote: >>>> >>>> In the Jupyter Hub, there's >>>> >>>> JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. >>>> >>>> You will need nodejs/npm, which you can get from your package manager: >>>> >>>> sudo apt-get install npm nodejs-legacy >>>> >>>> (The nodejs-legacy package installs the node executable, which is >>>> required for npm to work on Debian/Ubuntu at this point) >>>> >>>> Then install javascript dependencies: >>>> >>>> >>>> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. >>>> How do I meet that requirement? >>>> >>>> Thanks! >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> From doug.blank at gmail.com Sat Feb 7 09:04:43 2015 From: doug.blank at gmail.com (Doug Blank) Date: Sat, 7 Feb 2015 09:04:43 -0500 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: On Sat, Feb 7, 2015 at 8:34 AM, John Omernik wrote: > After more research (not in the jupyter docs) I realized that the link > Wes provided actually contradicts the Jupyter Hub documentation. Hence > why I posted. For anyone having issues with the Jupyter Docs, you > nodejs-legacy doesn't work on Ubuntu 12.04, so you have to add the PPA > in the link Wes provided. However then, there is a note about apt-get > install npm, which will not work with the PPA Wes provided, because of > a version conflict and because npm is included in the nodejs package > from Wes' link. > > Wes: Appreciate the reply, but I think the documentation could use > some work, and throwing links at people who ask questions based on the > current documentation may produce more frustration especially when the > links you provide don't line up with the documentation the user is > trying to install. I am not upset, I am just pointing out that some > users may get frustrated (I am not one of those, but I have worked > with many like that). > The jupyterhub docs are a wiki, so do please contribute and add to those. Jupyterhub is a bit different from other IPython projects in that it can be an exposed server application. Deploying it incorrectly can open your system up in unwanted ways. On one hand, one needs to have some experience in running a web server. On the other hand, it is also "fairly easy" to get setup for us non-admins. However, there are a million variations depending on OS and local setup. So, the docs will never be complete. I think I good goal would be to make it as comprehensive as possible for a limited set of standard operating systems/distributions. I suggest targeting Ubuntu 14.04 Long Term Service (LTS) for documentation would be a good compromise. Of course, it could be deployed in many more ways, but having a single well-documented example might provide hints for others. -Doug > > Thanks! > > John > > > > On Sat, Feb 7, 2015 at 4:55 AM, John Omernik wrote: > > As a follow-up, I did the above top link to install repository, now > > when I try to do npm, I get: > > > > sudo apt-get install npm > > > > Reading package lists... Done > > > > Building dependency tree > > > > Reading state information... Done > > > > Some packages could not be installed. This may mean that you have > > > > requested an impossible situation or if you are using the unstable > > > > distribution that some required packages have not yet been created > > > > or been moved out of Incoming. > > > > The following information may help to resolve the situation: > > > > > > The following packages have unmet dependencies: > > > > npm : Depends: nodejs but it is not going to be installed > > > > Depends: nodejs-dev > > > > Depends: node-request but it is not going to be installed > > > > Depends: node-mkdirp but it is not going to be installed > > > > Depends: node-minimatch but it is not going to be installed > > > > Depends: node-semver but it is not going to be installed > > > > Depends: node-ini but it is not going to be installed > > > > Depends: node-graceful-fs but it is not going to be installed > > > > Depends: node-abbrev but it is not going to be installed > > > > Depends: node-nopt but it is not going to be installed > > > > Depends: node-fstream but it is not going to be installed > > > > Depends: node-rimraf but it is not going to be installed > > > > Depends: node-tar but it is not going to be installed > > > > Depends: node-which but it is not going to be installed > > > > E: Unable to correct problems, you have held broken packages. > > > > > > > > On Sat, Feb 7, 2015 at 4:52 AM, John Omernik wrote: > >> Thank you Wes I am trying that. > >> > >> That said, when the documentation says do this "nodejs-legacy" and it > >> doesn't work, as an end user you wonder "well, wait, that isn't what I > >> was told to install, yes I could just install from this other > >> repository,but that isn't what the documentation calls for, but will > >> it be what the Jupyter Hub requires? Will it sorta work and possibly > >> provide me other issues that I have to spend time on, etc. Just an > >> observation as an end user. > >> > >> On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner > wrote: > >>> > https://github.com/joyent/node/wiki/installing-node.js-via-package-manager > >>> > >>> https://github.com/saltstack-formulas/node-formula > >>> > >>> > https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit > >>> > >>> https://registry.hub.docker.com/u/jupyter/jupyterhub/ > >>> > >>> On Feb 6, 2015 9:00 PM, "John Omernik" wrote: > >>>> > >>>> In the Jupyter Hub, there's > >>>> > >>>> JupyterHub requires IPython >= 3.0 (current master) and Python >= 3.3. > >>>> > >>>> You will need nodejs/npm, which you can get from your package manager: > >>>> > >>>> sudo apt-get install npm nodejs-legacy > >>>> > >>>> (The nodejs-legacy package installs the node executable, which is > >>>> required for npm to work on Debian/Ubuntu at this point) > >>>> > >>>> Then install javascript dependencies: > >>>> > >>>> > >>>> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. > >>>> How do I meet that requirement? > >>>> > >>>> Thanks! > >>>> _______________________________________________ > >>>> IPython-dev mailing list > >>>> IPython-dev at scipy.org > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>> > >>> > >>> _______________________________________________ > >>> IPython-dev mailing list > >>> IPython-dev at scipy.org > >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Sat Feb 7 09:33:17 2015 From: john at omernik.com (John Omernik) Date: Sat, 7 Feb 2015 08:33:17 -0600 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: That makes sense. I am trying to get a sense for things from a infosec standpoint, as to contributing to the wiki, I would very much be in favor of this, however, I don't feel I have the expertise right now to contribute to it. The reason I post here, is I can toss out what I did, and my assumptions and even if that's wrong, someone will likely call me out, that way I can learn from it, and anyone facing the same issues can learn too. I don't want my assumptions to be taken as word in the documentation. On Sat, Feb 7, 2015 at 8:04 AM, Doug Blank wrote: > On Sat, Feb 7, 2015 at 8:34 AM, John Omernik wrote: >> >> After more research (not in the jupyter docs) I realized that the link >> Wes provided actually contradicts the Jupyter Hub documentation. Hence >> why I posted. For anyone having issues with the Jupyter Docs, you >> nodejs-legacy doesn't work on Ubuntu 12.04, so you have to add the PPA >> in the link Wes provided. However then, there is a note about apt-get >> install npm, which will not work with the PPA Wes provided, because of >> a version conflict and because npm is included in the nodejs package >> from Wes' link. >> >> Wes: Appreciate the reply, but I think the documentation could use >> some work, and throwing links at people who ask questions based on the >> current documentation may produce more frustration especially when the >> links you provide don't line up with the documentation the user is >> trying to install. I am not upset, I am just pointing out that some >> users may get frustrated (I am not one of those, but I have worked >> with many like that). > > > The jupyterhub docs are a wiki, so do please contribute and add to those. > > Jupyterhub is a bit different from other IPython projects in that it can be > an exposed server application. Deploying it incorrectly can open your system > up in unwanted ways. On one hand, one needs to have some experience in > running a web server. > > On the other hand, it is also "fairly easy" to get setup for us non-admins. > However, there are a million variations depending on OS and local setup. > > So, the docs will never be complete. I think I good goal would be to make it > as comprehensive as possible for a limited set of standard operating > systems/distributions. I suggest targeting Ubuntu 14.04 Long Term Service > (LTS) for documentation would be a good compromise. Of course, it could be > deployed in many more ways, but having a single well-documented example > might provide hints for others. > > -Doug > >> >> >> Thanks! >> >> John >> >> >> >> On Sat, Feb 7, 2015 at 4:55 AM, John Omernik wrote: >> > As a follow-up, I did the above top link to install repository, now >> > when I try to do npm, I get: >> > >> > sudo apt-get install npm >> > >> > Reading package lists... Done >> > >> > Building dependency tree >> > >> > Reading state information... Done >> > >> > Some packages could not be installed. This may mean that you have >> > >> > requested an impossible situation or if you are using the unstable >> > >> > distribution that some required packages have not yet been created >> > >> > or been moved out of Incoming. >> > >> > The following information may help to resolve the situation: >> > >> > >> > The following packages have unmet dependencies: >> > >> > npm : Depends: nodejs but it is not going to be installed >> > >> > Depends: nodejs-dev >> > >> > Depends: node-request but it is not going to be installed >> > >> > Depends: node-mkdirp but it is not going to be installed >> > >> > Depends: node-minimatch but it is not going to be installed >> > >> > Depends: node-semver but it is not going to be installed >> > >> > Depends: node-ini but it is not going to be installed >> > >> > Depends: node-graceful-fs but it is not going to be installed >> > >> > Depends: node-abbrev but it is not going to be installed >> > >> > Depends: node-nopt but it is not going to be installed >> > >> > Depends: node-fstream but it is not going to be installed >> > >> > Depends: node-rimraf but it is not going to be installed >> > >> > Depends: node-tar but it is not going to be installed >> > >> > Depends: node-which but it is not going to be installed >> > >> > E: Unable to correct problems, you have held broken packages. >> > >> > >> > >> > On Sat, Feb 7, 2015 at 4:52 AM, John Omernik wrote: >> >> Thank you Wes I am trying that. >> >> >> >> That said, when the documentation says do this "nodejs-legacy" and it >> >> doesn't work, as an end user you wonder "well, wait, that isn't what I >> >> was told to install, yes I could just install from this other >> >> repository,but that isn't what the documentation calls for, but will >> >> it be what the Jupyter Hub requires? Will it sorta work and possibly >> >> provide me other issues that I have to spend time on, etc. Just an >> >> observation as an end user. >> >> >> >> On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner >> >> wrote: >> >>> >> >>> https://github.com/joyent/node/wiki/installing-node.js-via-package-manager >> >>> >> >>> https://github.com/saltstack-formulas/node-formula >> >>> >> >>> >> >>> https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit >> >>> >> >>> https://registry.hub.docker.com/u/jupyter/jupyterhub/ >> >>> >> >>> On Feb 6, 2015 9:00 PM, "John Omernik" wrote: >> >>>> >> >>>> In the Jupyter Hub, there's >> >>>> >> >>>> JupyterHub requires IPython >= 3.0 (current master) and Python >= >> >>>> 3.3. >> >>>> >> >>>> You will need nodejs/npm, which you can get from your package >> >>>> manager: >> >>>> >> >>>> sudo apt-get install npm nodejs-legacy >> >>>> >> >>>> (The nodejs-legacy package installs the node executable, which is >> >>>> required for npm to work on Debian/Ubuntu at this point) >> >>>> >> >>>> Then install javascript dependencies: >> >>>> >> >>>> >> >>>> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. >> >>>> How do I meet that requirement? >> >>>> >> >>>> Thanks! >> >>>> _______________________________________________ >> >>>> IPython-dev mailing list >> >>>> IPython-dev at scipy.org >> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>> >> >>> >> >>> _______________________________________________ >> >>> IPython-dev mailing list >> >>> IPython-dev at scipy.org >> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From kestert at google.com Sat Feb 7 14:23:08 2015 From: kestert at google.com (Kester Tong) Date: Sat, 7 Feb 2015 14:23:08 -0500 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: <70ED894B-E84A-488A-9646-EA0FD418B4A1@gmail.com> References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> <70ED894B-E84A-488A-9646-EA0FD418B4A1@gmail.com> Message-ID: > > I'll have a look tomorrow. > I'll re-look at the implementation but I think we could even have an even > more generic mixed content manager than takes N contents manager and > prefixes > and exposes each of them. > > I suppose we could probably try with Scott (IIRC) postgres backend > as an exercise. > I like this idea. It would be slightly more general and consistent than what we currently use. The implementation would be simpler since the first path component will always tell you which content manager to use. Maybe the mixed content manager could be part of IPython? We could test it out in Jupyter Drive first and move it later (still using regular contents manager by default). Kester > > -- > M > > > > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sat Feb 7 18:08:18 2015 From: benjaminrk at gmail.com (MinRK) Date: Sat, 7 Feb 2015 15:08:18 -0800 Subject: [IPython-dev] Jupyter Hub Doc Issue In-Reply-To: References: Message-ID: I haven?t tried setting up JupyterHub on old Ubuntu, but I would expect it to be a bit of a pain, given the requirements of recent versions of things. I would expect Ubuntu 12.04 to need one or more PPAs, or to use non-apt installations for more recent dependencies. The reason for the nodejs-legacy package is that the node executable was taken by a package nobody uses, and debian renamed the executable nodejs instead of node. This actually results in a totally non-functional node environment, so a bit of an odd choice. The nodejs-legacy is a separate package that makes the node executable point to nodejs. It is probably that a nodejs PPA installs the more standard node executable, obviating the need for nodejs-legacy. I think adding caveats for installation on older or less common systems is worthwhile as people come across them. Perhaps the better content for our docs is to be more terse, and say ?require nodejs >= 0.10?, and just link to node?s own docs for installation, since we are no experts on getting a nodejs environment set up, just like I don?t think it?s the responsibility of every Python package to have detailed docs on how to install Python. Certainly explaining *why* the nodejs-legacy package is required on recent Ubuntu/Debian should make it clearer that it may not be relevant if you choose a different path to installing node. -MinRK ? On Sat, Feb 7, 2015 at 6:33 AM, John Omernik wrote: > That makes sense. I am trying to get a sense for things from a infosec > standpoint, as to contributing to the wiki, I would very much be in > favor of this, however, I don't feel I have the expertise right now to > contribute to it. The reason I post here, is I can toss out what I > did, and my assumptions and even if that's wrong, someone will likely > call me out, that way I can learn from it, and anyone facing the same > issues can learn too. I don't want my assumptions to be taken as word > in the documentation. > > On Sat, Feb 7, 2015 at 8:04 AM, Doug Blank wrote: > > On Sat, Feb 7, 2015 at 8:34 AM, John Omernik wrote: > >> > >> After more research (not in the jupyter docs) I realized that the link > >> Wes provided actually contradicts the Jupyter Hub documentation. Hence > >> why I posted. For anyone having issues with the Jupyter Docs, you > >> nodejs-legacy doesn't work on Ubuntu 12.04, so you have to add the PPA > >> in the link Wes provided. However then, there is a note about apt-get > >> install npm, which will not work with the PPA Wes provided, because of > >> a version conflict and because npm is included in the nodejs package > >> from Wes' link. > >> > >> Wes: Appreciate the reply, but I think the documentation could use > >> some work, and throwing links at people who ask questions based on the > >> current documentation may produce more frustration especially when the > >> links you provide don't line up with the documentation the user is > >> trying to install. I am not upset, I am just pointing out that some > >> users may get frustrated (I am not one of those, but I have worked > >> with many like that). > > > > > > The jupyterhub docs are a wiki, so do please contribute and add to those. > > > > Jupyterhub is a bit different from other IPython projects in that it can > be > > an exposed server application. Deploying it incorrectly can open your > system > > up in unwanted ways. On one hand, one needs to have some experience in > > running a web server. > > > > On the other hand, it is also "fairly easy" to get setup for us > non-admins. > > However, there are a million variations depending on OS and local setup. > > > > So, the docs will never be complete. I think I good goal would be to > make it > > as comprehensive as possible for a limited set of standard operating > > systems/distributions. I suggest targeting Ubuntu 14.04 Long Term Service > > (LTS) for documentation would be a good compromise. Of course, it could > be > > deployed in many more ways, but having a single well-documented example > > might provide hints for others. > > > > -Doug > > > >> > >> > >> Thanks! > >> > >> John > >> > >> > >> > >> On Sat, Feb 7, 2015 at 4:55 AM, John Omernik wrote: > >> > As a follow-up, I did the above top link to install repository, now > >> > when I try to do npm, I get: > >> > > >> > sudo apt-get install npm > >> > > >> > Reading package lists... Done > >> > > >> > Building dependency tree > >> > > >> > Reading state information... Done > >> > > >> > Some packages could not be installed. This may mean that you have > >> > > >> > requested an impossible situation or if you are using the unstable > >> > > >> > distribution that some required packages have not yet been created > >> > > >> > or been moved out of Incoming. > >> > > >> > The following information may help to resolve the situation: > >> > > >> > > >> > The following packages have unmet dependencies: > >> > > >> > npm : Depends: nodejs but it is not going to be installed > >> > > >> > Depends: nodejs-dev > >> > > >> > Depends: node-request but it is not going to be installed > >> > > >> > Depends: node-mkdirp but it is not going to be installed > >> > > >> > Depends: node-minimatch but it is not going to be installed > >> > > >> > Depends: node-semver but it is not going to be installed > >> > > >> > Depends: node-ini but it is not going to be installed > >> > > >> > Depends: node-graceful-fs but it is not going to be installed > >> > > >> > Depends: node-abbrev but it is not going to be installed > >> > > >> > Depends: node-nopt but it is not going to be installed > >> > > >> > Depends: node-fstream but it is not going to be installed > >> > > >> > Depends: node-rimraf but it is not going to be installed > >> > > >> > Depends: node-tar but it is not going to be installed > >> > > >> > Depends: node-which but it is not going to be installed > >> > > >> > E: Unable to correct problems, you have held broken packages. > >> > > >> > > >> > > >> > On Sat, Feb 7, 2015 at 4:52 AM, John Omernik > wrote: > >> >> Thank you Wes I am trying that. > >> >> > >> >> That said, when the documentation says do this "nodejs-legacy" and it > >> >> doesn't work, as an end user you wonder "well, wait, that isn't what > I > >> >> was told to install, yes I could just install from this other > >> >> repository,but that isn't what the documentation calls for, but will > >> >> it be what the Jupyter Hub requires? Will it sorta work and possibly > >> >> provide me other issues that I have to spend time on, etc. Just an > >> >> observation as an end user. > >> >> > >> >> On Fri, Feb 6, 2015 at 11:03 PM, Wes Turner > >> >> wrote: > >> >>> > >> >>> > https://github.com/joyent/node/wiki/installing-node.js-via-package-manager > >> >>> > >> >>> https://github.com/saltstack-formulas/node-formula > >> >>> > >> >>> > >> >>> > https://docs.docker.com/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit > >> >>> > >> >>> https://registry.hub.docker.com/u/jupyter/jupyterhub/ > >> >>> > >> >>> On Feb 6, 2015 9:00 PM, "John Omernik" wrote: > >> >>>> > >> >>>> In the Jupyter Hub, there's > >> >>>> > >> >>>> JupyterHub requires IPython >= 3.0 (current master) and Python >= > >> >>>> 3.3. > >> >>>> > >> >>>> You will need nodejs/npm, which you can get from your package > >> >>>> manager: > >> >>>> > >> >>>> sudo apt-get install npm nodejs-legacy > >> >>>> > >> >>>> (The nodejs-legacy package installs the node executable, which is > >> >>>> required for npm to work on Debian/Ubuntu at this point) > >> >>>> > >> >>>> Then install javascript dependencies: > >> >>>> > >> >>>> > >> >>>> However, I am running Ubuntu 12.04, and there is no nodejs-legacy. > >> >>>> How do I meet that requirement? > >> >>>> > >> >>>> Thanks! > >> >>>> _______________________________________________ > >> >>>> IPython-dev mailing list > >> >>>> IPython-dev at scipy.org > >> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> >>> > >> >>> > >> >>> _______________________________________________ > >> >>> IPython-dev mailing list > >> >>> IPython-dev at scipy.org > >> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> >>> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Mon Feb 9 08:56:22 2015 From: john at omernik.com (John Omernik) Date: Mon, 9 Feb 2015 07:56:22 -0600 Subject: [IPython-dev] Jupyter Hub and Users Message-ID: I have Jupyter Hub working great with my users. (I surprise myself sometimes, although I have to give credit to list here :) Now, that I have it setup with multiple users, I was wondering: Given a root of "shared notebooks" i.e. notebooks that any users may use, is it possible to to see in Jupyter Hub when someone else may have a notebook open in their spawned environment? Ideally, I'd love to set it up so any notebook say User Z open sthat is opened by say user X would notify the user Z trying to open it i.e. "X.ipynb is opened currently by user Y" and then put that notebook into read only mode for user Z. I know the goals for the project are to have this be seamless down the road, perhaps even collaborative editing! In the short term, are there any links or anything that could help me at a minimum, prevent the situation where one user has a notebook open and another user inadvertently opens it and starts making changes, thereby clobbering the changes of the first user. I do have one situation that is already made easier by Jupyter hub, that's whereI have a set of notebooks that is Read/Write for one user, but read to all the others. That's easy with Unix permissions now. Any thoughts, or links on where to get started would be appreciated! John From benjaminrk at gmail.com Mon Feb 9 13:56:19 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 9 Feb 2015 10:56:19 -0800 Subject: [IPython-dev] Jupyter Hub and Users In-Reply-To: References: Message-ID: On Mon, Feb 9, 2015 at 5:56 AM, John Omernik wrote: > I have Jupyter Hub working great with my users. (I surprise myself > sometimes, although I have to give credit to list here :) > > Now, that I have it setup with multiple users, I was wondering: Given > a root of "shared notebooks" i.e. notebooks that any users may use, is > it possible to to see in Jupyter Hub when someone else may have a > notebook open in their spawned environment? Ideally, I'd love to set > it up so any notebook say User Z open sthat is opened by say user X > would notify the user Z trying to open it i.e. "X.ipynb is opened > currently by user Y" and then put that notebook into read only mode > for user Z. > > I know the goals for the project are to have this be seamless down the > road, perhaps even collaborative editing! In the short term, are there > any links or anything that could help me at a minimum, prevent the > situation where one user has a notebook open and another user > inadvertently opens it and starts making changes, thereby clobbering > the changes of the first user. > > I do have one situation that is already made easier by Jupyter hub, > that's whereI have a set of notebooks that is Read/Write for one user, > but read to all the others. That's easy with Unix permissions now. > > Any thoughts, or links on where to get started would be appreciated! > At this point, JupyterHub doesn't offer anything beyond what you can do with filesystem permissions - no cross-user notifications, or anything. The multi-user context has no awareness of what notebooks are open or by whom. We do plan to add some amount of sharing functionality to it, but we have not yet decided how that should look or what we can/should provide before/in addition to live collaboration. -MinRK > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Feb 9 14:11:01 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 9 Feb 2015 11:11:01 -0800 Subject: [IPython-dev] Jupyter Hub and Users In-Reply-To: References: Message-ID: > > At this point, JupyterHub doesn't offer anything beyond what you can do with filesystem permissions - no cross-user notifications, or anything. The multi-user context has no awareness of what notebooks are open or by whom. We do plan to add some amount of sharing functionality to it, but we have not yet decided how that should look or what we can/should provide before/in addition to live collaboration. Though IPython3 should warn you if you try to save a notebook that has been modified on Disk, and confirm save. Right ? -- m > > -MinRK > > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Mon Feb 9 15:34:38 2015 From: john at omernik.com (John Omernik) Date: Mon, 9 Feb 2015 14:34:38 -0600 Subject: [IPython-dev] Default Kernel for Jupyter Message-ID: As I am opening my old iPython notebooks for 2.3 in Jupyter, it's converting them to the format, but sometimes it changes the kernel to python3. We were using all Python2, and that's what I'd like to keep using in Jupyter. Is there away to set a default Kernel to be Python2, both for new notebooks and converted notebooks? Thanks John From takowl at gmail.com Mon Feb 9 16:41:07 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 9 Feb 2015 13:41:07 -0800 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: References: Message-ID: The default is the version of Python you're using to run the server, I believe. You can override that by setting c.MultiKernelManager.default_kernel_name = 'python2' in your ipython_notebook_config.py. On 9 February 2015 at 12:34, John Omernik wrote: > As I am opening my old iPython notebooks for 2.3 in Jupyter, it's > converting them to the format, but sometimes it changes the kernel to > python3. We were using all Python2, and that's what I'd like to keep > using in Jupyter. Is there away to set a default Kernel to be Python2, > both for new notebooks and converted notebooks? > > Thanks > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Feb 9 16:57:59 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 9 Feb 2015 13:57:59 -0800 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: References: Message-ID: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> Hey, Le 9 f?vr. 2015 ? 12:34, John Omernik a ?crit : > As I am opening my old iPython notebooks for 2.3 in Jupyter, it's > converting them to the format, but sometimes it changes the kernel to > python3. We were using all Python2, and that's what I'd like to keep > using in Jupyter. Is there away to set a default Kernel to be Python2, > both for new notebooks and converted notebooks? $ jupyter notebook --help-all ... MappingKernelManager options ---------------------------- --MappingKernelManager.default_kernel_name= Default: 'python3' The name of the default kernel to start ... So c.MappingKernelManager.default_kernel_name='python2' Or equivalent should work for you. Have you still considered migrating to Python 3 ? -- M > Thanks > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From john at omernik.com Mon Feb 9 17:05:18 2015 From: john at omernik.com (John Omernik) Date: Mon, 9 Feb 2015 16:05:18 -0600 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> References: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> Message-ID: No, using Python2 just because of the comfortable syntax and that's what the data science team uses. I guess I could encourage it, but it's frustrating for the data guys who just want things to be easy an intuitive :) With ipython (jupyter) I don't have a jupyter command, so I figured that the command is actualy ipython notebook --help-all? Should I just set the profile for each user to use python2? I guess, here's a dumb question, how do we set profile config items in Ipython3? I don't see the py file in the profile_default, just a sqllite file. (*feels dumb right now) On Mon, Feb 9, 2015 at 3:57 PM, Matthias Bussonnier wrote: > Hey, > > > Le 9 f?vr. 2015 ? 12:34, John Omernik a ?crit : > >> As I am opening my old iPython notebooks for 2.3 in Jupyter, it's >> converting them to the format, but sometimes it changes the kernel to >> python3. We were using all Python2, and that's what I'd like to keep >> using in Jupyter. Is there away to set a default Kernel to be Python2, >> both for new notebooks and converted notebooks? > > > $ jupyter notebook --help-all > > ... > MappingKernelManager options > ---------------------------- > --MappingKernelManager.default_kernel_name= > Default: 'python3' > The name of the default kernel to start > ... > > > So c.MappingKernelManager.default_kernel_name='python2' > Or equivalent should work for you. > > Have you still considered migrating to Python 3 ? > -- > M > > > >> Thanks >> >> John >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From john at omernik.com Mon Feb 9 17:11:19 2015 From: john at omernik.com (John Omernik) Date: Mon, 9 Feb 2015 16:11:19 -0600 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: References: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> Message-ID: Derp, I got it, I had to create a new profile, and then copy the .py files into the default. (you may question why I am using the default like that, and it's mainly because I can't figure out how to tell jupyterhub to use a specific profile) On Mon, Feb 9, 2015 at 4:05 PM, John Omernik wrote: > No, using Python2 just because of the comfortable syntax and that's > what the data science team uses. I guess I could encourage it, but > it's frustrating for the data guys who just want things to be easy an > intuitive :) > > With ipython (jupyter) I don't have a jupyter command, so I figured > that the command is actualy ipython notebook --help-all? Should I > just set the profile for each user to use python2? I guess, here's a > dumb question, how do we set profile config items in Ipython3? I don't > see the py file in the profile_default, just a sqllite file. (*feels > dumb right now) > > > > On Mon, Feb 9, 2015 at 3:57 PM, Matthias Bussonnier > wrote: >> Hey, >> >> >> Le 9 f?vr. 2015 ? 12:34, John Omernik a ?crit : >> >>> As I am opening my old iPython notebooks for 2.3 in Jupyter, it's >>> converting them to the format, but sometimes it changes the kernel to >>> python3. We were using all Python2, and that's what I'd like to keep >>> using in Jupyter. Is there away to set a default Kernel to be Python2, >>> both for new notebooks and converted notebooks? >> >> >> $ jupyter notebook --help-all >> >> ... >> MappingKernelManager options >> ---------------------------- >> --MappingKernelManager.default_kernel_name= >> Default: 'python3' >> The name of the default kernel to start >> ... >> >> >> So c.MappingKernelManager.default_kernel_name='python2' >> Or equivalent should work for you. >> >> Have you still considered migrating to Python 3 ? >> -- >> M >> >> >> >>> Thanks >>> >>> John >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev From benjaminrk at gmail.com Mon Feb 9 17:17:15 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 9 Feb 2015 14:17:15 -0800 Subject: [IPython-dev] Jupyter Hub and Users In-Reply-To: References: Message-ID: On Mon, Feb 9, 2015 at 11:11 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > At this point, JupyterHub doesn't offer anything beyond what you can do > with filesystem permissions - no cross-user notifications, or anything. The > multi-user context has no awareness of what notebooks are open or by whom. > We do plan to add some amount of sharing functionality to it, but we have > not yet decided how that should look or what we can/should provide > before/in addition to live collaboration. > > > > Though IPython3 should warn you if you try to save a notebook that has > been modified on Disk, > and confirm save. > Right ? > Yes, that's true. At this point, it should behave roughly comparably to users with their own independent text editors editing files on a shared filesystem. You will get notified on save if the file has changed out from under you. The notification happens when you try to save, though, not when the changes happen. That's something we probably could support, but is perhaps unlikely. -MinRK -- > m > > > -MinRK > > >> >> John >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Feb 9 17:18:10 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 9 Feb 2015 14:18:10 -0800 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: References: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> Message-ID: We don't create the config files until you ask for them - running 'ipython profile create' will create them for the default profile. On 9 February 2015 at 14:11, John Omernik wrote: > Derp, I got it, I had to create a new profile, and then copy the .py > files into the default. (you may question why I am using the default > like that, and it's mainly because I can't figure out how to tell > jupyterhub to use a specific profile) > > On Mon, Feb 9, 2015 at 4:05 PM, John Omernik wrote: > > No, using Python2 just because of the comfortable syntax and that's > > what the data science team uses. I guess I could encourage it, but > > it's frustrating for the data guys who just want things to be easy an > > intuitive :) > > > > With ipython (jupyter) I don't have a jupyter command, so I figured > > that the command is actualy ipython notebook --help-all? Should I > > just set the profile for each user to use python2? I guess, here's a > > dumb question, how do we set profile config items in Ipython3? I don't > > see the py file in the profile_default, just a sqllite file. (*feels > > dumb right now) > > > > > > > > On Mon, Feb 9, 2015 at 3:57 PM, Matthias Bussonnier > > wrote: > >> Hey, > >> > >> > >> Le 9 f?vr. 2015 ? 12:34, John Omernik a ?crit : > >> > >>> As I am opening my old iPython notebooks for 2.3 in Jupyter, it's > >>> converting them to the format, but sometimes it changes the kernel to > >>> python3. We were using all Python2, and that's what I'd like to keep > >>> using in Jupyter. Is there away to set a default Kernel to be Python2, > >>> both for new notebooks and converted notebooks? > >> > >> > >> $ jupyter notebook --help-all > >> > >> ... > >> MappingKernelManager options > >> ---------------------------- > >> --MappingKernelManager.default_kernel_name= > >> Default: 'python3' > >> The name of the default kernel to start > >> ... > >> > >> > >> So c.MappingKernelManager.default_kernel_name='python2' > >> Or equivalent should work for you. > >> > >> Have you still considered migrating to Python 3 ? > >> -- > >> M > >> > >> > >> > >>> Thanks > >>> > >>> John > >>> _______________________________________________ > >>> IPython-dev mailing list > >>> IPython-dev at scipy.org > >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Mon Feb 9 17:19:38 2015 From: john at omernik.com (John Omernik) Date: Mon, 9 Feb 2015 16:19:38 -0600 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: References: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> Message-ID: Cool, I created a new profile, "profile_test" and copied the py files to the default, will that work to, or will that break something? John On Mon, Feb 9, 2015 at 4:18 PM, Thomas Kluyver wrote: > We don't create the config files until you ask for them - running 'ipython > profile create' will create them for the default profile. > > On 9 February 2015 at 14:11, John Omernik wrote: >> >> Derp, I got it, I had to create a new profile, and then copy the .py >> files into the default. (you may question why I am using the default >> like that, and it's mainly because I can't figure out how to tell >> jupyterhub to use a specific profile) >> >> On Mon, Feb 9, 2015 at 4:05 PM, John Omernik wrote: >> > No, using Python2 just because of the comfortable syntax and that's >> > what the data science team uses. I guess I could encourage it, but >> > it's frustrating for the data guys who just want things to be easy an >> > intuitive :) >> > >> > With ipython (jupyter) I don't have a jupyter command, so I figured >> > that the command is actualy ipython notebook --help-all? Should I >> > just set the profile for each user to use python2? I guess, here's a >> > dumb question, how do we set profile config items in Ipython3? I don't >> > see the py file in the profile_default, just a sqllite file. (*feels >> > dumb right now) >> > >> > >> > >> > On Mon, Feb 9, 2015 at 3:57 PM, Matthias Bussonnier >> > wrote: >> >> Hey, >> >> >> >> >> >> Le 9 f?vr. 2015 ? 12:34, John Omernik a ?crit : >> >> >> >>> As I am opening my old iPython notebooks for 2.3 in Jupyter, it's >> >>> converting them to the format, but sometimes it changes the kernel to >> >>> python3. We were using all Python2, and that's what I'd like to keep >> >>> using in Jupyter. Is there away to set a default Kernel to be Python2, >> >>> both for new notebooks and converted notebooks? >> >> >> >> >> >> $ jupyter notebook --help-all >> >> >> >> ... >> >> MappingKernelManager options >> >> ---------------------------- >> >> --MappingKernelManager.default_kernel_name= >> >> Default: 'python3' >> >> The name of the default kernel to start >> >> ... >> >> >> >> >> >> So c.MappingKernelManager.default_kernel_name='python2' >> >> Or equivalent should work for you. >> >> >> >> Have you still considered migrating to Python 3 ? >> >> -- >> >> M >> >> >> >> >> >> >> >>> Thanks >> >>> >> >>> John >> >>> _______________________________________________ >> >>> IPython-dev mailing list >> >>> IPython-dev at scipy.org >> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From benjaminrk at gmail.com Mon Feb 9 17:21:45 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 9 Feb 2015 14:21:45 -0800 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: References: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> Message-ID: That should be fine. Profile's don't know their own name, so you can move them around however you like. On Mon, Feb 9, 2015 at 2:19 PM, John Omernik wrote: > Cool, I created a new profile, "profile_test" and copied the py files > to the default, will that work to, or will that break something? > > John > > > On Mon, Feb 9, 2015 at 4:18 PM, Thomas Kluyver wrote: > > We don't create the config files until you ask for them - running > 'ipython > > profile create' will create them for the default profile. > > > > On 9 February 2015 at 14:11, John Omernik wrote: > >> > >> Derp, I got it, I had to create a new profile, and then copy the .py > >> files into the default. (you may question why I am using the default > >> like that, and it's mainly because I can't figure out how to tell > >> jupyterhub to use a specific profile) > >> > >> On Mon, Feb 9, 2015 at 4:05 PM, John Omernik wrote: > >> > No, using Python2 just because of the comfortable syntax and that's > >> > what the data science team uses. I guess I could encourage it, but > >> > it's frustrating for the data guys who just want things to be easy an > >> > intuitive :) > >> > > >> > With ipython (jupyter) I don't have a jupyter command, so I figured > >> > that the command is actualy ipython notebook --help-all? Should I > >> > just set the profile for each user to use python2? I guess, here's a > >> > dumb question, how do we set profile config items in Ipython3? I don't > >> > see the py file in the profile_default, just a sqllite file. (*feels > >> > dumb right now) > >> > > >> > > >> > > >> > On Mon, Feb 9, 2015 at 3:57 PM, Matthias Bussonnier > >> > wrote: > >> >> Hey, > >> >> > >> >> > >> >> Le 9 f?vr. 2015 ? 12:34, John Omernik a ?crit : > >> >> > >> >>> As I am opening my old iPython notebooks for 2.3 in Jupyter, it's > >> >>> converting them to the format, but sometimes it changes the kernel > to > >> >>> python3. We were using all Python2, and that's what I'd like to > keep > >> >>> using in Jupyter. Is there away to set a default Kernel to be > Python2, > >> >>> both for new notebooks and converted notebooks? > >> >> > >> >> > >> >> $ jupyter notebook --help-all > >> >> > >> >> ... > >> >> MappingKernelManager options > >> >> ---------------------------- > >> >> --MappingKernelManager.default_kernel_name= > >> >> Default: 'python3' > >> >> The name of the default kernel to start > >> >> ... > >> >> > >> >> > >> >> So c.MappingKernelManager.default_kernel_name='python2' > >> >> Or equivalent should work for you. > >> >> > >> >> Have you still considered migrating to Python 3 ? > >> >> -- > >> >> M > >> >> > >> >> > >> >> > >> >>> Thanks > >> >>> > >> >>> John > >> >>> _______________________________________________ > >> >>> IPython-dev mailing list > >> >>> IPython-dev at scipy.org > >> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> >> > >> >> _______________________________________________ > >> >> IPython-dev mailing list > >> >> IPython-dev at scipy.org > >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Feb 9 17:22:27 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 9 Feb 2015 14:22:27 -0800 Subject: [IPython-dev] Default Kernel for Jupyter In-Reply-To: References: <7729589D-CB27-45B6-9FC7-31DB66F93278@gmail.com> Message-ID: <23D2D0C7-C2F1-400C-9B44-F094C479EC13@gmail.com> Le 9 f?vr. 2015 ? 14:05, John Omernik a ?crit : > No, using Python2 just because of the comfortable syntax and that's > what the data science team uses. I guess I could encourage it, but > it's frustrating for the data guys who just want things to be easy an > intuitive :) Frankly, now python3 is completely usable, syntax is the same beyond print, and __future__ make most code compatible with python2. I had to sprinkle my PhD with a few explicit list() to avoid iterator on plotting, but that's about it. > With ipython (jupyter) I don't have a jupyter command, so I figured > that the command is actualy ipython notebook --help-all? Yeah, I have an alias. > Should I > just set the profile for each user to use python2? I guess, here's a > dumb question, how do we set profile config items in Ipython3? I don't > see the py file in the profile_default, just a sqllite file. (*feels > dumb right now) Yeah, python config file might not be here, You don't need to copy file from other default profile, you can create them from scratch also. You can ale make json config file if you like. > Le 9 f?vr. 2015 ? 14:11, John Omernik a ?crit : > Derp, I got it, I had to create a new profile, and then copy the .py > files into the default. (you may question why I am using the default > like that, and it's mainly because I can't figure out how to tell > jupyterhub to use a specific profile) Not sure about that, if you install only IPython3 through python 2 it should work, or you can set the command I guess. -- M > > On Mon, Feb 9, 2015 at 3:57 PM, Matthias Bussonnier > wrote: >> Hey, >> >> >> Le 9 f?vr. 2015 ? 12:34, John Omernik a ?crit : >> >>> As I am opening my old iPython notebooks for 2.3 in Jupyter, it's >>> converting them to the format, but sometimes it changes the kernel to >>> python3. We were using all Python2, and that's what I'd like to keep >>> using in Jupyter. Is there away to set a default Kernel to be Python2, >>> both for new notebooks and converted notebooks? >> >> >> $ jupyter notebook --help-all >> >> ... >> MappingKernelManager options >> ---------------------------- >> --MappingKernelManager.default_kernel_name= >> Default: 'python3' >> The name of the default kernel to start >> ... >> >> >> So c.MappingKernelManager.default_kernel_name='python2' >> Or equivalent should work for you. >> >> Have you still considered migrating to Python 3 ? >> -- >> M >> >> >> >>> Thanks >>> >>> John >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From zaki.mughal at gmail.com Mon Feb 9 18:08:51 2015 From: zaki.mughal at gmail.com (Zakariyya Mughal) Date: Mon, 9 Feb 2015 17:08:51 -0600 Subject: [IPython-dev] Custom cell types for markup Message-ID: <20150209230851.GJ13270@janus.cbl.uh.edu> Hi! I would like to add a custom cell type for formatted documentation. Instead of just Markdown, I would like to be able to use POD . Now, I understand that having a custom format will lead to portability issues, but would it be possible to have something where the cell type is POD, but the notebook contains both the POD source and pre-generated HTML output that can be rendered by nbviewer? Is there an example of something similar? Perhaps I can do this all in JavaScript, but I don't know of any JavaScript POD parsers. Regards, - Zaki Mughal From benjaminrk at gmail.com Mon Feb 9 18:13:25 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 9 Feb 2015 15:13:25 -0800 Subject: [IPython-dev] IPython 2.4, 3.0b1 In-Reply-To: References: Message-ID: The 2.4.0 release was missing a few of the backports targeted for 2.4, including changes required for the qtconsole to run with pygments 2.0. We released 2.4.1 today, which is accurately described by the 2.4 release notes, unlike 2.4.0. -MinRK On Fri, Jan 30, 2015 at 3:30 PM, MinRK wrote: > Hello, > > It?s been a long time coming, but we have begun the release cycle for > IPython 3.0, with the first beta. You can take it for a spin with: > > pip install --pre 'ipython[all]' > > IPython 3.0 brings a lot of changes - optional terminals in the browser, > editing non-notebook text files, major notebook format and message spec > revisions, UI overhaul, etc. Take it for a spin, and let us know what you > find. Check out the release notes > > for more info. We still have a few known bugs and UI issues to address > before we get to 3.0 final, but we?ll get there soon. > > We also released IPython 2.4 today, which adds to 2.x the ability to > *read* the new notebook format coming in IPython 3.0. 2.4 also fixes some > compatibility issues with PyQt5 and pygments 2. > > With your help, 3.0 final will see the light of day before too long. > > -MinRK, on behalf of the IPython team > ? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Feb 9 20:31:08 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 9 Feb 2015 17:31:08 -0800 Subject: [IPython-dev] Custom cell types for markup In-Reply-To: <20150209230851.GJ13270@janus.cbl.uh.edu> References: <20150209230851.GJ13270@janus.cbl.uh.edu> Message-ID: <6443FFC2-4B51-4D23-A6C7-DD4F82A75E7C@gmail.com> Hi, Unfortunately there is no easy way to use an alternative markup language for the notebook. It was considered, but was considered too complicated to support. It should be possible but far from easy, and I'm not sure we are ready yet to re-consider. Cheers, -- M Le 9 f?vr. 2015 ? 15:08, Zakariyya Mughal a ?crit : > Hi! > > I would like to add a custom cell type for formatted documentation. > Instead of just Markdown, I would like to be able to use POD > . > > Now, I understand that having a custom format will lead to portability > issues, but would it be possible to have something where the cell type > is POD, but the notebook contains both the POD source and pre-generated > HTML output that can be rendered by nbviewer? > > Is there an example of something similar? Perhaps I can do this all in > JavaScript, but I don't know of any JavaScript POD parsers. > > Regards, > - Zaki Mughal > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From takowl at gmail.com Mon Feb 9 20:40:00 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 9 Feb 2015 17:40:00 -0800 Subject: [IPython-dev] Custom cell types for markup In-Reply-To: <6443FFC2-4B51-4D23-A6C7-DD4F82A75E7C@gmail.com> References: <20150209230851.GJ13270@janus.cbl.uh.edu> <6443FFC2-4B51-4D23-A6C7-DD4F82A75E7C@gmail.com> Message-ID: You can have raw cells with a specified mime type. By default, these will display in the notebook as plain, unhighlighted text, but you could write an extension that watched for raw cells with a specific mime type and then rendered them. A JS POD parser would be required for that, though. Exporting them with nbconvert should be easier, though - you can write Jinja templates and filters that will, for instance, run those output cells through a command line program to render them. Thomas On 9 February 2015 at 17:31, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Hi, > > Unfortunately there is no easy way to use an alternative > markup language for the notebook. > It was considered, but was considered too complicated > to support. > > It should be possible but far from easy, and I'm not sure we are > ready yet to re-consider. > > Cheers, > -- > M > > > Le 9 f?vr. 2015 ? 15:08, Zakariyya Mughal a ?crit > : > > > Hi! > > > > I would like to add a custom cell type for formatted documentation. > > Instead of just Markdown, I would like to be able to use POD > > . > > > > Now, I understand that having a custom format will lead to portability > > issues, but would it be possible to have something where the cell type > > is POD, but the notebook contains both the POD source and pre-generated > > HTML output that can be rendered by nbviewer? > > > > Is there an example of something similar? Perhaps I can do this all in > > JavaScript, but I don't know of any JavaScript POD parsers. > > > > Regards, > > - Zaki Mughal > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Tue Feb 10 10:43:33 2015 From: john at omernik.com (John Omernik) Date: Tue, 10 Feb 2015 09:43:33 -0600 Subject: [IPython-dev] Ability to Create other Windows Message-ID: This is a weird question I think. I am trying to write a magic function that does something simple with a widget. Basically I want to be able to query a database and when the query is returned have a button that "contains" results. Like this: %%sql select * from table where field = 1 When that is is done, a Button widget appears, with the word results on it. The data is "in there" likely a panda dataframe to_html. But basically I'd like to be able to, when I press the button have a new window spawned (maybe with a a javascript new window) That has the data in a different window that I can move to a different screen and look at as I am writing more code in my iPython notebooks. (Further enhancements may come out of that down the line) What I have is below. What happens is when I add a variable to the callback function it seems to click it right away, and there are no results. I am trying a bunch of stuff here, and still hacking on it, but I thought I'd toss it out here. I am using Jupyter (iPython 3) with Python2 Shell. Note, once the new window is filled with data, and good to go, iPython has no more connection (back and forth data) Basically it's a fly away window, it can stay open, closed etc, it's independent of the iPython (in my head at least) @register_cell_magic def sql(line, cell): pd.set_option('max_colwidth', 100000) pd.set_option('display.max_rows', None) out = runSQL(cell) df = pd.DataFrame(out) # Assume this is a working happy Pandas Dataframe gridhtml = df.to_html() JS = """ var newwindow=window.open(); newwindow.document.open() newwindow.document.write(`%~%`); newwindow.close(); """ JS = JS.replace('%~%', gridhtml) button = widgets.Button(description="Results") display(button) button.on_click(on_button_clicked(button, JS)) def on_button_clicked(b, JS): print "I've been clicked" createWindow(JS) def createWindow(JS) j = Javascript(JS) display(k) From john at omernik.com Tue Feb 10 12:28:51 2015 From: john at omernik.com (John Omernik) Date: Tue, 10 Feb 2015 11:28:51 -0600 Subject: [IPython-dev] Ability to Create other Windows In-Reply-To: References: Message-ID: So here is an example of it working without the button, just having the window pop up when the the magic is run. So, the idea here is when the data query is loaded, the button is added, and every time the button is pressed, the window can be reopened. Now it's just a matter of playing with the widgets... how do I pass a variable to the button on_click event? :) On Tue, Feb 10, 2015 at 9:43 AM, John Omernik wrote: > This is a weird question I think. > > I am trying to write a magic function that does something simple with > a widget. Basically I want to be able to query a database and when the > query is returned have a button that "contains" results. Like this: > > > %%sql > select * from table where field = 1 > > > When that is is done, a Button widget appears, with the word results > on it. The data is "in there" likely a panda dataframe to_html. But > basically I'd like to be able to, when I press the button have a new > window spawned (maybe with a a javascript new window) That has the > data in a different window that I can move to a different screen and > look at as I am writing more code in my iPython notebooks. (Further > enhancements may come out of that down the line) > > What I have is below. What happens is when I add a variable to the > callback function it seems to click it right away, and there are no > results. I am trying a bunch of stuff here, and still hacking on it, > but I thought I'd toss it out here. I am using Jupyter (iPython 3) > with Python2 Shell. > > Note, once the new window is filled with data, and good to go, iPython > has no more connection (back and forth data) Basically it's a fly away > window, it can stay open, closed etc, it's independent of the iPython > (in my head at least) > > @register_cell_magic > def sql(line, cell): > pd.set_option('max_colwidth', 100000) > pd.set_option('display.max_rows', None) > out = runSQL(cell) > df = pd.DataFrame(out) > # Assume this is a working happy Pandas Dataframe > gridhtml = df.to_html() > > JS = """ > var newwindow=window.open(); > newwindow.document.open() > newwindow.document.write(`%~%`); > newwindow.close(); > """ > JS = JS.replace('%~%', gridhtml) > > button = widgets.Button(description="Results") > display(button) > > button.on_click(on_button_clicked(button, JS)) > def on_button_clicked(b, JS): > print "I've been clicked" > createWindow(JS) > def createWindow(JS) > j = Javascript(JS) > display(k) From ndbecker2 at gmail.com Tue Feb 10 14:02:11 2015 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 10 Feb 2015 14:02:11 -0500 Subject: [IPython-dev] IPython 2.4, 3.0b1 References: Message-ID: MinRK wrote: > The 2.4.0 release was missing a few of the backports targeted for 2.4, > including changes required for the qtconsole to run with pygments 2.0. We > released 2.4.1 today, which is accurately described by the 2.4 release > notes, unlike 2.4.0. > > -MinRK > > On Fri, Jan 30, 2015 at 3:30 PM, MinRK wrote: > >> Hello, >> >> It?s been a long time coming, but we have begun the release cycle for >> IPython 3.0, with the first beta. You can take it for a spin with: >> >> pip install --pre 'ipython[all]' >> >> IPython 3.0 brings a lot of changes - optional terminals in the browser, >> editing non-notebook text files, major notebook format and message spec >> revisions, UI overhaul, etc. Take it for a spin, and let us know what you >> find. Check out the release notes >> >> for more info. We still have a few known bugs and UI issues to address >> before we get to 3.0 final, but we?ll get there soon. >> >> We also released IPython 2.4 today, which adds to 2.x the ability to >> *read* the new notebook format coming in IPython 3.0. 2.4 also fixes some >> compatibility issues with PyQt5 and pygments 2. >> >> With your help, 3.0 final will see the light of day before too long. >> >> -MinRK, on behalf of the IPython team >> ? >> Did pip install --up --user --pre ipython[all] on fedora 21 x86_64. So far everything working beautifully! -- -- Those who don't understand recursion are doomed to repeat it From bussonniermatthias at gmail.com Tue Feb 10 14:24:24 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 10 Feb 2015 11:24:24 -0800 Subject: [IPython-dev] IPython 2.4, 3.0b1 In-Reply-To: References: Message-ID: <9E37D8B1-8B96-448C-8214-2B6755434448@gmail.com> Le 10 f?vr. 2015 ? 11:02, Neal Becker a ?crit : > Did pip install --up --user --pre ipython[all] on > fedora 21 x86_64. > > So far everything working beautifully! Thanks for the nobug report ! It always nice when we get feedback that things work. We should open a nobug-tracker ! -- M From doug.blank at gmail.com Tue Feb 10 14:28:41 2015 From: doug.blank at gmail.com (Doug Blank) Date: Tue, 10 Feb 2015 14:28:41 -0500 Subject: [IPython-dev] IPython 2.4, 3.0b1 In-Reply-To: <9E37D8B1-8B96-448C-8214-2B6755434448@gmail.com> References: <9E37D8B1-8B96-448C-8214-2B6755434448@gmail.com> Message-ID: On Tue, Feb 10, 2015 at 2:24 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 10 f?vr. 2015 ? 11:02, Neal Becker a ?crit : > > > > Did pip install --up --user --pre ipython[all] on > > fedora 21 x86_64. > > > > So far everything working beautifully! > > Thanks for the nobug report ! > It always nice when we get feedback that things work. > > We should open a nobug-tracker ! > Oh, good... I have a long list of things that ARE working :) And I keep finding more... Is there a beta2 on the way? -Doug > > -- > M > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zaki.mughal at gmail.com Tue Feb 10 14:32:29 2015 From: zaki.mughal at gmail.com (Zakariyya Mughal) Date: Tue, 10 Feb 2015 13:32:29 -0600 Subject: [IPython-dev] Custom cell types for markup In-Reply-To: <6443FFC2-4B51-4D23-A6C7-DD4F82A75E7C@gmail.com> Message-ID: <20150210193229.GB5692@simulo> On 2015-02-09 at 17:31:08 -0800, Matthias Bussonnier wrote: > Hi, > > It should be possible but far from easy, and I'm not sure we are > ready yet to re-consider. Hehe, sounds like something right up my alley. > > Cheers, > -- > M On 2015-02-09 at 17:40:00 -0800, Thomas Kluyver wrote: > You can have raw cells with a specified mime type. By default, these will > display in the notebook as plain, unhighlighted text, but you could write > an extension that watched for raw cells with a specific mime type and then > rendered them. A JS POD parser would be required for that, though. > > Exporting them with nbconvert should be easier, though - you can write > Jinja templates and filters that will, for instance, run those output cells > through a command line program to render them. OK, that seems do-able. I'll report back if I get it all working. Thank you both for the info! Regards, - Zaki Mughal > > Thomas From benjaminrk at gmail.com Tue Feb 10 14:34:18 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 10 Feb 2015 11:34:18 -0800 Subject: [IPython-dev] IPython 2.4, 3.0b1 In-Reply-To: References: <9E37D8B1-8B96-448C-8214-2B6755434448@gmail.com> Message-ID: On Tue, Feb 10, 2015 at 11:28 AM, Doug Blank wrote: > On Tue, Feb 10, 2015 at 2:24 PM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> >> Le 10 f?vr. 2015 ? 11:02, Neal Becker a ?crit : >> >> >> > Did pip install --up --user --pre ipython[all] on >> > fedora 21 x86_64. >> > >> > So far everything working beautifully! >> >> Thanks for the nobug report ! >> It always nice when we get feedback that things work. >> >> We should open a nobug-tracker ! >> > > Oh, good... I have a long list of things that ARE working :) And I keep > finding more... > > Is there a beta2 on the way? > Sorting a few things out. I think we should have b2 or rc at the end of this week. Thanks for testing! -MinRK > > -Doug > > >> >> -- >> M >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelsonchem at gmail.com Wed Feb 11 09:34:19 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Wed, 11 Feb 2015 09:34:19 -0500 Subject: [IPython-dev] Move output scrollbar to top? In-Reply-To: References: Message-ID: Anton, Sorry a little late here... I don't have an direct solution to your problem, but I found that Pandas has a number of output settings which helped me with this same problem. For example, you can set `pandas.set_option('max_rows', 10)` and it will limit the number of rows printed. You can set this to whatever is sensible to keep the output in your screen window. Not perfect, but hope it helps. http://pandas.pydata.org/pandas-docs/stable/options.html#frequently-used-options Ryan On Thu, Feb 5, 2015 at 4:18 AM, Kiko wrote: > > > 2015-02-04 15:28 GMT+01:00 Nicholas Bollweg : > >> Looks like a 0-height div and some event ninjitsu would work. >> http://aburt.com/topscrollbar/ >> >> On Wed, Feb 4, 2015 at 1:41 AM, Ant Super >> wrote: >> >>> Hi! >>> do you guys know a way to move the output scrollbar of (HTML) output in >>> the IPython notebook to the top of the cell? >>> >>> When you output wide pandas dataframes with no limit on columns (because >>> you want to >>> see them all), it produces an HTML output cell with scrollbars. The >>> annoying thing is that the horizontal scrollbar is at the bottom, so that >>> you have to scroll down on the page, then scroll right and finally scroll >>> up again to see the header of the dataframe. >>> >>> Is there a hack to place the horizontal scrollbar top? Is this a >>> sensible default option? >>> >>> > You could always use the third button of your mouse as an easy and cheap > solution. > > >> Anton >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Wed Feb 11 11:17:55 2015 From: john at omernik.com (John Omernik) Date: Wed, 11 Feb 2015 10:17:55 -0600 Subject: [IPython-dev] Ability to Create other Windows In-Reply-To: References: Message-ID: So after some hacking around this is what I came up with. I'd be interested on feed back if this is doing something fundamentally "wrong" I was able to achieve what I was looking for though, which was a pandas outputted data frame in a new window so I could resize and scroll through . from IPython.display import Javascript from IPython.html import widgets # Widget definitions # Used to display widgets in the notebook from IPython.display import display, HTML, display_pretty, display_html, display_jpeg, display_png, display_json, display_latex, display_svg results = {} @register_cell_magic def sql(line, cell): global results pd.set_option('max_colwidth', 100000) pd.set_option('display.max_rows', None) out = runSQL(cell) df = pd.DataFrame(out) # Assume this is a working happy Pandas Dataframe gridhtml = df.to_html() window_options = "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=780, height=200, top=0, left=0" fmd5 = md5(gridhtml) #I've imported the hashlib hexdigest into my own md5() base = """var win = window.open("", "&~&", "*~*"); win.document.body.innerHTML = `%~%`; """ JS = base.replace('%~%', gridhtml) # Put the results in the output JS = JS.replace('&~&', fmd5) # Set the title to be the md5 JS = JS.replace('*~*', window_options) # Include the window options results[fmd5] = JS # Store the results in a global dictionary by using an MD5 key button = widgets.Button(description="Results") button.tooltip = fmd5 # Set the tool tip to be the Md5 so we can "pass" this to the call back button.on_click(on_button_clicked) # Set the call back display(button) def on_button_clicked(b): global results fmd5 = b.tooltip # get the md5 from the tooltop createwindow(results[fmd5]) #Call the create window def createwindow(JS): j = Javascript(JS) display(j) On Tue, Feb 10, 2015 at 11:28 AM, John Omernik wrote: > So here is an example of it working without the button, just having > the window pop up when the the magic is run. So, the idea here is when > the data query is loaded, the button is added, and every time the > button is pressed, the window can be reopened. Now it's just a matter > of playing with the widgets... how do I pass a variable to the button > on_click event? :) > > > On Tue, Feb 10, 2015 at 9:43 AM, John Omernik wrote: >> This is a weird question I think. >> >> I am trying to write a magic function that does something simple with >> a widget. Basically I want to be able to query a database and when the >> query is returned have a button that "contains" results. Like this: >> >> >> %%sql >> select * from table where field = 1 >> >> >> When that is is done, a Button widget appears, with the word results >> on it. The data is "in there" likely a panda dataframe to_html. But >> basically I'd like to be able to, when I press the button have a new >> window spawned (maybe with a a javascript new window) That has the >> data in a different window that I can move to a different screen and >> look at as I am writing more code in my iPython notebooks. (Further >> enhancements may come out of that down the line) >> >> What I have is below. What happens is when I add a variable to the >> callback function it seems to click it right away, and there are no >> results. I am trying a bunch of stuff here, and still hacking on it, >> but I thought I'd toss it out here. I am using Jupyter (iPython 3) >> with Python2 Shell. >> >> Note, once the new window is filled with data, and good to go, iPython >> has no more connection (back and forth data) Basically it's a fly away >> window, it can stay open, closed etc, it's independent of the iPython >> (in my head at least) >> >> @register_cell_magic >> def sql(line, cell): >> pd.set_option('max_colwidth', 100000) >> pd.set_option('display.max_rows', None) >> out = runSQL(cell) >> df = pd.DataFrame(out) >> # Assume this is a working happy Pandas Dataframe >> gridhtml = df.to_html() >> >> JS = """ >> var newwindow=window.open(); >> newwindow.document.open() >> newwindow.document.write(`%~%`); >> newwindow.close(); >> """ >> JS = JS.replace('%~%', gridhtml) >> >> button = widgets.Button(description="Results") >> display(button) >> >> button.on_click(on_button_clicked(button, JS)) >> def on_button_clicked(b, JS): >> print "I've been clicked" >> createWindow(JS) >> def createWindow(JS) >> j = Javascript(JS) >> display(k) From ssanderson at quantopian.com Wed Feb 11 13:30:51 2015 From: ssanderson at quantopian.com (ssanderson) Date: Wed, 11 Feb 2015 10:30:51 -0800 (PST) Subject: [IPython-dev] Launching Jupyter Notebook Sharing on Quantopian Message-ID: <1423679451758-5085970.post@n6.nabble.com> Hi All, At the dev meeting last week we talked a bit about the future of indexing and sharing IPython/Jupyter notebooks publicly, and I mentioned that we've been working on adding sharing of notebooks to Quantopian's research platform alpha. We launched that system this week, so I thought it might be helpful to walk through our design as an example of what sharing might look like in the main notebook project. I'm also just super proud of our team for building this and want to show off all their hard work :) The backend is basically just nbconvert plus S3 bucket storage and some custom sanitization logic to guard against XSS. The frontend consists of an nbextension that adds a share button to each cell on mouseover. On hitting the share button we create a window where you can add a title and description in markdown (the javascript for this is in the same nbextension): Upon submission, we mark the shared cell as a "preview cell" in its metadata and then post it to an NBConvert handler that creates a full HTML rendering of the notebook, plus a stripped down preview of just the selected cell. These get stored in S3 and are used by our main application to create new forum posts. Here's an example of a notebook that we shared today with our community: https://www.quantopian.com/posts/research-investing-in-women-led-fortune-1000-companies Thanks to the IPython/Jupyter team for building an amazing tool upon which we can build something like this. I'm incredibly excited to see how much the project has progressed in the short time that I've been working on our integration. -Scott -- View this message in context: http://python.6.x6.nabble.com/Launching-Jupyter-Notebook-Sharing-on-Quantopian-tp5085970.html Sent from the IPython - Development mailing list archive at Nabble.com. From rgbkrk at gmail.com Wed Feb 11 14:17:25 2015 From: rgbkrk at gmail.com (Kyle Kelley) Date: Wed, 11 Feb 2015 13:17:25 -0600 Subject: [IPython-dev] Launching Jupyter Notebook Sharing on Quantopian In-Reply-To: <1423679451758-5085970.post@n6.nabble.com> References: <1423679451758-5085970.post@n6.nabble.com> Message-ID: This is super slick! Thank YOU and Quantopian for being such great stewards of Open Source, contributing back to the main project in ways that help everyone. On Wed, Feb 11, 2015 at 12:30 PM, ssanderson wrote: > Hi All, > > At the dev meeting last week we talked a bit about the future of indexing > and sharing IPython/Jupyter notebooks publicly, and I mentioned that we've > been working on adding sharing of notebooks to Quantopian's research > platform alpha. We launched that system this week, so I thought it might > be > helpful to walk through our design as an example of what sharing might look > like in the main notebook project. I'm also just super proud of our team > for building this and want to show off all their hard work :) > > The backend is basically just nbconvert plus S3 bucket storage and some > custom sanitization logic > to guard against XSS. > > The frontend consists of an nbextension that adds a share button to each > cell on mouseover. > > > > On hitting the share button we create a window where you can add a title > and > description in markdown (the javascript for this is in the same > nbextension): > > > > Upon submission, we mark the shared cell as a "preview cell" in its > metadata > and then post it to an NBConvert handler that creates a full HTML rendering > of the notebook, plus a stripped down preview of just the selected cell. > These get stored in S3 and are used by our main application to create new > forum posts. Here's an example of a notebook that we shared today with our > community: > > > https://www.quantopian.com/posts/research-investing-in-women-led-fortune-1000-companies > > Thanks to the IPython/Jupyter team for building an amazing tool upon which > we can build something like this. I'm incredibly excited to see how much > the project has progressed in the short time that I've been working on our > integration. > > -Scott > > > > > > > -- > View this message in context: > http://python.6.x6.nabble.com/Launching-Jupyter-Notebook-Sharing-on-Quantopian-tp5085970.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Kyle Kelley (@rgbkrk ; lambdaops.com, developer.rackspace.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Feb 11 14:58:27 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 11 Feb 2015 11:58:27 -0800 Subject: [IPython-dev] Launching Jupyter Notebook Sharing on Quantopian In-Reply-To: <1423679451758-5085970.post@n6.nabble.com> References: <1423679451758-5085970.post@n6.nabble.com> Message-ID: This is awesome, Scott! Absolutely thrilled to see this... As we look at the integration of Fabian's gallery with nbviewer (as per last week's meeting), we should definitely follow with this kind of tool... Thanks for sharing this, great job by you and the whole Quantopian team! Cheers f On Wed, Feb 11, 2015 at 10:30 AM, ssanderson wrote: > Hi All, > > At the dev meeting last week we talked a bit about the future of indexing > and sharing IPython/Jupyter notebooks publicly, and I mentioned that we've > been working on adding sharing of notebooks to Quantopian's research > platform alpha. We launched that system this week, so I thought it might > be > helpful to walk through our design as an example of what sharing might look > like in the main notebook project. I'm also just super proud of our team > for building this and want to show off all their hard work :) > > The backend is basically just nbconvert plus S3 bucket storage and some > custom sanitization logic > to guard against XSS. > > The frontend consists of an nbextension that adds a share button to each > cell on mouseover. > > > > On hitting the share button we create a window where you can add a title > and > description in markdown (the javascript for this is in the same > nbextension): > > > > Upon submission, we mark the shared cell as a "preview cell" in its > metadata > and then post it to an NBConvert handler that creates a full HTML rendering > of the notebook, plus a stripped down preview of just the selected cell. > These get stored in S3 and are used by our main application to create new > forum posts. Here's an example of a notebook that we shared today with our > community: > > > https://www.quantopian.com/posts/research-investing-in-women-led-fortune-1000-companies > > Thanks to the IPython/Jupyter team for building an amazing tool upon which > we can build something like this. I'm incredibly excited to see how much > the project has progressed in the short time that I've been working on our > integration. > > -Scott > > > > > > > -- > View this message in context: > http://python.6.x6.nabble.com/Launching-Jupyter-Notebook-Sharing-on-Quantopian-tp5085970.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From anton.akhmerov at gmail.com Thu Feb 12 11:42:33 2015 From: anton.akhmerov at gmail.com (Anton Akhmerov) Date: Thu, 12 Feb 2015 17:42:33 +0100 Subject: [IPython-dev] Developing a mooc with IPython (continued) Message-ID: Hi everyone, This is a follow-up on a message I wrote some time ago about developing an edx mooc using IPython notebooks and nbconvert. The course is now live, and here's the repository with the course materials and the converter ipython -> edx: https://github.com/topocm/topocm_content/ The very much boilerplate file that does the conversion is scripts/converter.py. The converted course is available here: http://tiny.cc/topocm (sorry, edx only shows content to registered users). It works out quite nicely, except for some image alignment issues. Thanks to the IPython team for developing ipython and for advice on gitter. A separate thanks goes also to Jake Vanderplas for ipywidgets, an unsupported but a very useful package for creating static widgets. Best, Anton Akhmerov From bussonniermatthias at gmail.com Thu Feb 12 12:16:48 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 12 Feb 2015 09:16:48 -0800 Subject: [IPython-dev] [jupyter] [ANN] IJavascript v4.1.3 released In-Reply-To: References: Message-ID: <3C042062-C904-43DB-B37F-8020C73A3708@gmail.com> Hi Nico ! Really nice, I'll cc IPython-dev as not everyone is on Jupyter-ml yet, and take the time to tell people that this is exactly the kind of reason we had to create Jupyter and this mailing list. To respond to your question, we try to push people to use the last version of the protocol, as with each new version that is released the old one becomes un-maintained. That being said, if you respond with v4 message format to v5 query we will automatically add a middleware adapter. and with v5 the protocol version should be in the headers. Thus if the first request you receive is (kernel-info request IIRC) is v5 then you can assume the all session will be v5. Does that make sens ? Thanks ! -- M Le 12 f?vr. 2015 ? 04:16, N. Riesco a ?crit : > Hello Jovyans, > > > I would like to announce the last release of IJavascript (a Javascript kernel for IPython/Jupyter). > > It can be installed using npm: > npm install ijavascript > and/or cloned from github: > git clone https://github.com/n-riesco/ijavascript > > In this release, I have implemented a new Javascript session server, and now the kernel is not only able to respond with the results of a piece of code, but also stream stdout and stderr. I hope this provides enough functionality to be useful to others. > > I've also documented the code. The documentation generated by JSDoc is located in folder `doc/jsdoc`. > > Help and advice are welcome. > > All the best, > > > Nico > > > PS: At the moment, IJavascript implements version 4.1 of the IPython protocol. In the future I'd like for IJavascript to implement version 5.0. Is there a way for kernel to determine what protocol versions are understood by a frontend? > > -- > 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+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/a87f6cf7-8be9-4312-b294-20d0fc6ba4a3%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Feb 12 12:46:35 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 12 Feb 2015 09:46:35 -0800 Subject: [IPython-dev] Developing a mooc with IPython (continued) In-Reply-To: References: Message-ID: Thanks Anton, This looks great ! Did you ever meet, or have you been in contact with Lorena Barba and her group that make a AeroPython Class [1] ? I guess there mitt be some part of infrastructure that you might share. Cheers, -- M [1] http://lorenabarba.com/news/announcing-practical-numerical-methods-with-python-mooc/ Le 12 f?vr. 2015 ? 08:42, Anton Akhmerov a ?crit : > Hi everyone, > > This is a follow-up on a message I wrote some time ago about > developing an edx mooc using IPython notebooks and nbconvert. > > The course is now live, and here's the repository with the course > materials and the converter ipython -> edx: > https://github.com/topocm/topocm_content/ > > The very much boilerplate file that does the conversion is scripts/converter.py. > > The converted course is available here: http://tiny.cc/topocm (sorry, > edx only shows content to registered users). > > It works out quite nicely, except for some image alignment issues. > > Thanks to the IPython team for developing ipython and for advice on > gitter. A separate thanks goes also to Jake Vanderplas for ipywidgets, > an unsupported but a very useful package for creating static widgets. > > Best, > Anton Akhmerov > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.h.bell at gmail.com Fri Feb 13 11:06:50 2015 From: ian.h.bell at gmail.com (Ian Bell) Date: Fri, 13 Feb 2015 09:06:50 -0700 Subject: [IPython-dev] Installation docs out of date Message-ID: I tried to install ipython+dependencies on a new machine, and it dies when it tries to install the dependencies: C:\Users\ihb>pip install ipython[all] Requirement already satisfied (use --upgrade to upgrade): ipython[all] in c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages Exception: Traceback (most recent call last): File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", line 232, in main status = self.run(options, args) File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", line 339, in run requirement_set.prepare_files(finder) File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", line 436, in prepare_files req_to_install.extras): File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2504, in requires "%s has no such extra feature %r" % (self, ext) UnknownExtra: ipython 2.4.1 has no such extra feature 'all' My python: Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://binstar.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelsonchem at gmail.com Fri Feb 13 11:12:45 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Fri, 13 Feb 2015 11:12:45 -0500 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: With Anaconda, you can use `conda` to install these packages. $ source activate your_env # Not necessary for root environment $ conda install ipython ipython-notebook ipython-qtconsole On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell wrote: > I tried to install ipython+dependencies on a new machine, and it dies when > it tries to install the dependencies: > > C:\Users\ihb>pip install ipython[all] > Requirement already satisfied (use --upgrade to upgrade): ipython[all] in > c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages > Exception: > Traceback (most recent call last): > File > "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", > line 232, in main > status = self.run(options, args) > File > "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", > line 339, in run > requirement_set.prepare_files(finder) > File > "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", > line 436, in prepare_files > req_to_install.extras): > File > "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", > line 2504, in requires > "%s has no such extra feature %r" % (self, ext) > UnknownExtra: ipython 2.4.1 has no such extra feature 'all' > > My python: > > Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, 15:12:11) > [MSC v.1500 64 bit (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > Anaconda is brought to you by Continuum Analytics. > Please check out: http://continuum.io/thanks and https://binstar.org > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vasco+python at tenner.nl Fri Feb 13 11:19:50 2015 From: vasco+python at tenner.nl (Vasco) Date: Fri, 13 Feb 2015 17:19:50 +0100 Subject: [IPython-dev] nbviewer down? Message-ID: <54DE2426.9050008@tenner.nl> When I try to visit the nbviewer, I get this message: Error 503 No healthy backends No healthy backends Guru Mediation: Details: cache-fra1220-FRA 1423844339 3917985856 Varnish cache server From lev at columbia.edu Fri Feb 13 11:43:33 2015 From: lev at columbia.edu (Lev Givon) Date: Fri, 13 Feb 2015 11:43:33 -0500 Subject: [IPython-dev] symbols loaded during startup not displayed by %who/%whos Message-ID: <20150213164333.GN4194@avicenna.ee.columbia.edu> I have ipython 2.4.1 configured to import several modules during startup via a Python file in ~/.ipython/profile_default/startup/. Although the imported modules are immediately accessible when I start an ipython console session, the imported modules are not displayed when I run the %who or %whos magics. Is this behavior expected? -- Lev Givon Bionet Group | Neurokernel Project http://www.columbia.edu/~lev/ http://lebedov.github.io/ http://neurokernel.github.io/ From john at omernik.com Fri Feb 13 11:43:36 2015 From: john at omernik.com (John Omernik) Date: Fri, 13 Feb 2015 10:43:36 -0600 Subject: [IPython-dev] set_next_input() multiple times Message-ID: I am trying to use set_next_input to add two cells below the cell I am executing in. I can do one cell no problem, but when I do the following code, only Hello2 gets added, there is only a single cell. How do set two subsequent cells in my currently running notebook (I don't want to save off and reopen or anything) Thanks! myIPython = get_ipython() cmd = 'Hello1" myIPython.set_next_input(cmd) cmd = 'Hello2" myIPython.set_next_input(cmd) John From takowl at gmail.com Fri Feb 13 12:15:57 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 13 Feb 2015 09:15:57 -0800 Subject: [IPython-dev] nbviewer down? In-Reply-To: <54DE2426.9050008@tenner.nl> References: <54DE2426.9050008@tenner.nl> Message-ID: It seems to be working for me now - do you still see a problem? On 13 February 2015 at 08:19, Vasco wrote: > When I try to visit the nbviewer, I get this message: > > > Error 503 No healthy backends > > No healthy backends > Guru Mediation: > > Details: cache-fra1220-FRA 1423844339 3917985856 > > Varnish cache server > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Fri Feb 13 12:25:51 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 13 Feb 2015 09:25:51 -0800 Subject: [IPython-dev] symbols loaded during startup not displayed by %who/%whos In-Reply-To: <20150213164333.GN4194@avicenna.ee.columbia.edu> References: <20150213164333.GN4194@avicenna.ee.columbia.edu> Message-ID: On 13 February 2015 at 08:43, Lev Givon wrote: > the > imported modules are not displayed when I run the %who or > %whos magics. Is this behavior expected? > Yes, I think so. The idea is that you can pre-fill the namespace with a lot of things automatically (as e.g. pylab mode does), and it will only show you things that you have actually defined yourself in the shell. There are also some IPython features exposed in the namespace (like Out) which are hidden from %who. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Fri Feb 13 12:30:45 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 13 Feb 2015 09:30:45 -0800 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: Hi John, On 13 February 2015 at 08:43, John Omernik wrote: > I am trying to use set_next_input to add two cells below the cell I am > executing in. I can do one cell no problem, but when I do the > following code, only Hello2 gets added, there is only a single cell. > How do set two subsequent cells in my currently running notebook (I > don't want to save off and reopen or anything) > set_next_input() originated with the console interface, where it doesn't really make sense to set anything beyond the next input. So it can currently add only one cell per user execution. If you really need your code to modify the notebook document, you can have it display javascript to do so - but be careful that that JS doesn't get rerun every time you open the notebook. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Fri Feb 13 12:54:51 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 13 Feb 2015 09:54:51 -0800 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: On 13 February 2015 at 08:06, Ian Bell wrote: > UnknownExtra: ipython 2.4.1 has no such extra feature 'all' I can't reproduce this locally in a conda env or a virtualenv. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Fri Feb 13 12:57:51 2015 From: benjaminrk at gmail.com (MinRK) Date: Fri, 13 Feb 2015 09:57:51 -0800 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: Can you try pip install --upgrade ipython[all] If IPython is installed without setuptools (likely for the conda package), then pip install ipython[all] doesn?t make sense after the fact. -MinRK ? On Fri, Feb 13, 2015 at 9:54 AM, Thomas Kluyver wrote: > On 13 February 2015 at 08:06, Ian Bell wrote: > >> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' > > > I can't reproduce this locally in a conda env or a virtualenv. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.h.bell at gmail.com Fri Feb 13 13:15:00 2015 From: ian.h.bell at gmail.com (Ian Bell) Date: Fri, 13 Feb 2015 11:15:00 -0700 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: I do use conda, but the docs should be compatible with conda usage C:\Users\ihb>pip install --upgrade ipython[all] Requirement already up-to-date: ipython[all] in c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages Exception: Traceback (most recent call last): File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", line 232, in main status = self.run(options, args) File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", line 339, in run requirement_set.prepare_files(finder) File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", line 436, in prepare_files req_to_install.extras): File "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2504, in requires "%s has no such extra feature %r" % (self, ext) UnknownExtra: ipython 2.4.1 has no such extra feature 'all' I used pip to manually install the required packages for the notebook. On Fri, Feb 13, 2015 at 10:57 AM, MinRK wrote: > Can you try > > pip install --upgrade ipython[all] > > If IPython is installed without setuptools (likely for the conda package), > then pip install ipython[all] doesn?t make sense after the fact. > > -MinRK > ? > > On Fri, Feb 13, 2015 at 9:54 AM, Thomas Kluyver wrote: > >> On 13 February 2015 at 08:06, Ian Bell wrote: >> >>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >> >> >> I can't reproduce this locally in a conda env or a virtualenv. >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.h.bell at gmail.com Fri Feb 13 13:16:38 2015 From: ian.h.bell at gmail.com (Ian Bell) Date: Fri, 13 Feb 2015 11:16:38 -0700 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson wrote: > With Anaconda, you can use `conda` to install these packages. > > > $ source activate your_env # Not necessary for root environment > $ conda install ipython ipython-notebook ipython-qtconsole > Exactly this should be on the website. Its not obvious what conda package is required to get full notebook support. The conda update ipython command doesn't do it. > > On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell wrote: > >> I tried to install ipython+dependencies on a new machine, and it dies >> when it tries to install the dependencies: >> >> C:\Users\ihb>pip install ipython[all] >> Requirement already satisfied (use --upgrade to upgrade): ipython[all] in >> c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >> Exception: >> Traceback (most recent call last): >> File >> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >> line 232, in main >> status = self.run(options, args) >> File >> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >> line 339, in run >> requirement_set.prepare_files(finder) >> File >> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >> line 436, in prepare_files >> req_to_install.extras): >> File >> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >> line 2504, in requires >> "%s has no such extra feature %r" % (self, ext) >> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >> >> My python: >> >> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, 15:12:11) >> [MSC v.1500 64 bit (AMD64)] on win32 >> Type "help", "copyright", "credits" or "license" for more information. >> Anaconda is brought to you by Continuum Analytics. >> Please check out: http://continuum.io/thanks and https://binstar.org >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelsonchem at gmail.com Fri Feb 13 13:59:43 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Fri, 13 Feb 2015 13:59:43 -0500 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: Yeah. The docs (http://ipython.org/install.html) should probably mention this if they are going to reference conda specifically. However, it is a conda-specific issue, so it might be more appropriate to point users to the continuum documentation instead. Especially, given that the IPython docs suggest installing the full Anaconda package (which has notebook) and do not mention Miniconda, which it looks like you are using. You can search the conda package repository pretty easily: http://conda.pydata.org/docs/examples/search.html But I agree that this it is not well documented. I have miniconda on a Linux distro, and fresh environments don't install pip. This caused some problems for me at first because it was using the system pip, which was no good. Do you have another Python install on your computer? You could do a `conda install pip` and make sure you have the Continuum version. Just out of curiosity, why would use want to use pip at all? It might be safer to install things using conda exclusively. You might run into problems with pip when you are trying to install modules that require compiled components such as Qt4/5. For example, the command `conda install ipython ipython-notebook ipython-qtconsole` will install ipython and all the dependencies, including a precompiled version of the Qt libraries. I don't think a `pip install pyqt4` will do that. (?) See here for more: http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda However, the answer here is a little misleading because the conda-installed pip will install packages that are conda-aware. That is, I've installed packages with the conda version of pip, and `conda list` will show these packages as being installed. On Fri, Feb 13, 2015 at 1:16 PM, Ian Bell wrote: > > > On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson > wrote: > >> With Anaconda, you can use `conda` to install these packages. >> >> >> $ source activate your_env # Not necessary for root environment >> $ conda install ipython ipython-notebook ipython-qtconsole >> > > Exactly this should be on the website. Its not obvious what conda package > is required to get full notebook support. The > > conda update ipython > > command doesn't do it. > > >> >> On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell wrote: >> >>> I tried to install ipython+dependencies on a new machine, and it dies >>> when it tries to install the dependencies: >>> >>> C:\Users\ihb>pip install ipython[all] >>> Requirement already satisfied (use --upgrade to upgrade): ipython[all] >>> in c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >>> Exception: >>> Traceback (most recent call last): >>> File >>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >>> line 232, in main >>> status = self.run(options, args) >>> File >>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >>> line 339, in run >>> requirement_set.prepare_files(finder) >>> File >>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >>> line 436, in prepare_files >>> req_to_install.extras): >>> File >>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >>> line 2504, in requires >>> "%s has no such extra feature %r" % (self, ext) >>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >>> >>> My python: >>> >>> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, >>> 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 >>> Type "help", "copyright", "credits" or "license" for more information. >>> Anaconda is brought to you by Continuum Analytics. >>> Please check out: http://continuum.io/thanks and https://binstar.org >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Fri Feb 13 14:12:34 2015 From: benjaminrk at gmail.com (MinRK) Date: Fri, 13 Feb 2015 11:12:34 -0800 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: Yeah, we can probably add some clarifications. I think it's a huge mistake that conda allows installing Python without pip. This really shouldn't be allowed. -MinRK On Fri, Feb 13, 2015 at 10:59 AM, Ryan Nelson wrote: > Yeah. The docs (http://ipython.org/install.html) should probably mention > this if they are going to reference conda specifically. However, it is a > conda-specific issue, so it might be more appropriate to point users to the > continuum documentation instead. Especially, given that the IPython docs > suggest installing the full Anaconda package (which has notebook) and do > not mention Miniconda, which it looks like you are using. You can search > the conda package repository pretty easily: > http://conda.pydata.org/docs/examples/search.html > But I agree that this it is not well documented. > > I have miniconda on a Linux distro, and fresh environments don't install > pip. This caused some problems for me at first because it was using the > system pip, which was no good. Do you have another Python install on your > computer? You could do a `conda install pip` and make sure you have the > Continuum version. > > Just out of curiosity, why would use want to use pip at all? It might be > safer to install things using conda exclusively. You might run into > problems with pip when you are trying to install modules that require > compiled components such as Qt4/5. For example, the command `conda install > ipython ipython-notebook ipython-qtconsole` will install ipython and all > the dependencies, including a precompiled version of the Qt libraries. I > don't think a `pip install pyqt4` will do that. (?) See here for more: > > http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda > However, the answer here is a little misleading because the > conda-installed pip will install packages that are conda-aware. That is, > I've installed packages with the conda version of pip, and `conda list` > will show these packages as being installed. > > On Fri, Feb 13, 2015 at 1:16 PM, Ian Bell wrote: > >> >> >> On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson >> wrote: >> >>> With Anaconda, you can use `conda` to install these packages. >>> >>> >>> $ source activate your_env # Not necessary for root environment >>> $ conda install ipython ipython-notebook ipython-qtconsole >>> >> >> Exactly this should be on the website. Its not obvious what conda >> package is required to get full notebook support. The >> >> conda update ipython >> >> command doesn't do it. >> >> >>> >>> On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell wrote: >>> >>>> I tried to install ipython+dependencies on a new machine, and it dies >>>> when it tries to install the dependencies: >>>> >>>> C:\Users\ihb>pip install ipython[all] >>>> Requirement already satisfied (use --upgrade to upgrade): ipython[all] >>>> in c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >>>> Exception: >>>> Traceback (most recent call last): >>>> File >>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >>>> line 232, in main >>>> status = self.run(options, args) >>>> File >>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >>>> line 339, in run >>>> requirement_set.prepare_files(finder) >>>> File >>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >>>> line 436, in prepare_files >>>> req_to_install.extras): >>>> File >>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >>>> line 2504, in requires >>>> "%s has no such extra feature %r" % (self, ext) >>>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >>>> >>>> My python: >>>> >>>> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, >>>> 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 >>>> Type "help", "copyright", "credits" or "license" for more information. >>>> Anaconda is brought to you by Continuum Analytics. >>>> Please check out: http://continuum.io/thanks and https://binstar.org >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelsonchem at gmail.com Fri Feb 13 14:50:44 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Fri, 13 Feb 2015 14:50:44 -0500 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: Min, I just posted a little note about the pip issue on the Anaconda mailing list. We'll see what they say about including it by default. Hopefully, this solves Ian's problem. Ryan On Fri, Feb 13, 2015 at 2:12 PM, MinRK wrote: > Yeah, we can probably add some clarifications. > > I think it's a huge mistake that conda allows installing Python without > pip. This really shouldn't be allowed. > > -MinRK > > On Fri, Feb 13, 2015 at 10:59 AM, Ryan Nelson > wrote: > >> Yeah. The docs (http://ipython.org/install.html) should probably mention >> this if they are going to reference conda specifically. However, it is a >> conda-specific issue, so it might be more appropriate to point users to the >> continuum documentation instead. Especially, given that the IPython docs >> suggest installing the full Anaconda package (which has notebook) and do >> not mention Miniconda, which it looks like you are using. You can search >> the conda package repository pretty easily: >> http://conda.pydata.org/docs/examples/search.html >> But I agree that this it is not well documented. >> >> I have miniconda on a Linux distro, and fresh environments don't install >> pip. This caused some problems for me at first because it was using the >> system pip, which was no good. Do you have another Python install on your >> computer? You could do a `conda install pip` and make sure you have the >> Continuum version. >> >> Just out of curiosity, why would use want to use pip at all? It might be >> safer to install things using conda exclusively. You might run into >> problems with pip when you are trying to install modules that require >> compiled components such as Qt4/5. For example, the command `conda install >> ipython ipython-notebook ipython-qtconsole` will install ipython and all >> the dependencies, including a precompiled version of the Qt libraries. I >> don't think a `pip install pyqt4` will do that. (?) See here for more: >> >> http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda >> However, the answer here is a little misleading because the >> conda-installed pip will install packages that are conda-aware. That is, >> I've installed packages with the conda version of pip, and `conda list` >> will show these packages as being installed. >> >> On Fri, Feb 13, 2015 at 1:16 PM, Ian Bell wrote: >> >>> >>> >>> On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson >>> wrote: >>> >>>> With Anaconda, you can use `conda` to install these packages. >>>> >>>> >>>> $ source activate your_env # Not necessary for root environment >>>> $ conda install ipython ipython-notebook ipython-qtconsole >>>> >>> >>> Exactly this should be on the website. Its not obvious what conda >>> package is required to get full notebook support. The >>> >>> conda update ipython >>> >>> command doesn't do it. >>> >>> >>>> >>>> On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell >>>> wrote: >>>> >>>>> I tried to install ipython+dependencies on a new machine, and it dies >>>>> when it tries to install the dependencies: >>>>> >>>>> C:\Users\ihb>pip install ipython[all] >>>>> Requirement already satisfied (use --upgrade to upgrade): ipython[all] >>>>> in c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >>>>> Exception: >>>>> Traceback (most recent call last): >>>>> File >>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >>>>> line 232, in main >>>>> status = self.run(options, args) >>>>> File >>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >>>>> line 339, in run >>>>> requirement_set.prepare_files(finder) >>>>> File >>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >>>>> line 436, in prepare_files >>>>> req_to_install.extras): >>>>> File >>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >>>>> line 2504, in requires >>>>> "%s has no such extra feature %r" % (self, ext) >>>>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >>>>> >>>>> My python: >>>>> >>>>> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, >>>>> 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 >>>>> Type "help", "copyright", "credits" or "license" for more information. >>>>> Anaconda is brought to you by Continuum Analytics. >>>>> Please check out: http://continuum.io/thanks and https://binstar.org >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Fri Feb 13 15:22:20 2015 From: john at omernik.com (John Omernik) Date: Fri, 13 Feb 2015 14:22:20 -0600 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: So there is not a way to programmatically add a couple of cells in iPython Notebook? On Fri, Feb 13, 2015 at 11:30 AM, Thomas Kluyver wrote: > Hi John, > > On 13 February 2015 at 08:43, John Omernik wrote: >> >> I am trying to use set_next_input to add two cells below the cell I am >> executing in. I can do one cell no problem, but when I do the >> following code, only Hello2 gets added, there is only a single cell. >> How do set two subsequent cells in my currently running notebook (I >> don't want to save off and reopen or anything) > > > set_next_input() originated with the console interface, where it doesn't > really make sense to set anything beyond the next input. So it can currently > add only one cell per user execution. > > If you really need your code to modify the notebook document, you can have > it display javascript to do so - but be careful that that JS doesn't get > rerun every time you open the notebook. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From ian.h.bell at gmail.com Fri Feb 13 16:47:16 2015 From: ian.h.bell at gmail.com (Ian Bell) Date: Fri, 13 Feb 2015 14:47:16 -0700 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: Sometimes you have no choice but to fall back to pip when conda chokes on a package that it doesn't understand. So I have a hodgepodge of pip-installed and conda-installed packages on my machine, and until conda fully supports pip, it looks like it is going to stay that way. I'm fine not using pip and using conda, but the conda docs should tell you how to get everything up and running easily with ipython. Adding the line described in this thread would probably do it. Ian On Fri, Feb 13, 2015 at 12:50 PM, Ryan Nelson wrote: > Min, > > I just posted a little note about the pip issue on the Anaconda mailing > list. We'll see what they say about including it by default. > Hopefully, this solves Ian's problem. > > Ryan > > On Fri, Feb 13, 2015 at 2:12 PM, MinRK wrote: > >> Yeah, we can probably add some clarifications. >> >> I think it's a huge mistake that conda allows installing Python without >> pip. This really shouldn't be allowed. >> >> -MinRK >> >> On Fri, Feb 13, 2015 at 10:59 AM, Ryan Nelson >> wrote: >> >>> Yeah. The docs (http://ipython.org/install.html) should probably >>> mention this if they are going to reference conda specifically. However, it >>> is a conda-specific issue, so it might be more appropriate to point users >>> to the continuum documentation instead. Especially, given that the IPython >>> docs suggest installing the full Anaconda package (which has notebook) and >>> do not mention Miniconda, which it looks like you are using. You can search >>> the conda package repository pretty easily: >>> http://conda.pydata.org/docs/examples/search.html >>> But I agree that this it is not well documented. >>> >>> I have miniconda on a Linux distro, and fresh environments don't install >>> pip. This caused some problems for me at first because it was using the >>> system pip, which was no good. Do you have another Python install on your >>> computer? You could do a `conda install pip` and make sure you have the >>> Continuum version. >>> >>> Just out of curiosity, why would use want to use pip at all? It might be >>> safer to install things using conda exclusively. You might run into >>> problems with pip when you are trying to install modules that require >>> compiled components such as Qt4/5. For example, the command `conda install >>> ipython ipython-notebook ipython-qtconsole` will install ipython and all >>> the dependencies, including a precompiled version of the Qt libraries. I >>> don't think a `pip install pyqt4` will do that. (?) See here for more: >>> >>> http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda >>> However, the answer here is a little misleading because the >>> conda-installed pip will install packages that are conda-aware. That is, >>> I've installed packages with the conda version of pip, and `conda list` >>> will show these packages as being installed. >>> >>> On Fri, Feb 13, 2015 at 1:16 PM, Ian Bell wrote: >>> >>>> >>>> >>>> On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson >>>> wrote: >>>> >>>>> With Anaconda, you can use `conda` to install these packages. >>>>> >>>>> >>>>> $ source activate your_env # Not necessary for root environment >>>>> $ conda install ipython ipython-notebook ipython-qtconsole >>>>> >>>> >>>> Exactly this should be on the website. Its not obvious what conda >>>> package is required to get full notebook support. The >>>> >>>> conda update ipython >>>> >>>> command doesn't do it. >>>> >>>> >>>>> >>>>> On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell >>>>> wrote: >>>>> >>>>>> I tried to install ipython+dependencies on a new machine, and it dies >>>>>> when it tries to install the dependencies: >>>>>> >>>>>> C:\Users\ihb>pip install ipython[all] >>>>>> Requirement already satisfied (use --upgrade to upgrade): >>>>>> ipython[all] in >>>>>> c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >>>>>> Exception: >>>>>> Traceback (most recent call last): >>>>>> File >>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >>>>>> line 232, in main >>>>>> status = self.run(options, args) >>>>>> File >>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >>>>>> line 339, in run >>>>>> requirement_set.prepare_files(finder) >>>>>> File >>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >>>>>> line 436, in prepare_files >>>>>> req_to_install.extras): >>>>>> File >>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >>>>>> line 2504, in requires >>>>>> "%s has no such extra feature %r" % (self, ext) >>>>>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >>>>>> >>>>>> My python: >>>>>> >>>>>> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, >>>>>> 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 >>>>>> Type "help", "copyright", "credits" or "license" for more information. >>>>>> Anaconda is brought to you by Continuum Analytics. >>>>>> Please check out: http://continuum.io/thanks and https://binstar.org >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.h.bell at gmail.com Fri Feb 13 16:52:15 2015 From: ian.h.bell at gmail.com (Ian Bell) Date: Fri, 13 Feb 2015 14:52:15 -0700 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: I'm trying to put together a PR for this, but I can't find the right source file to edit, its not this one: https://github.com/ipython/ipython/blob/master/docs/source/install/install.rst I want to edit this file: http://ipython.org/install.html On Fri, Feb 13, 2015 at 2:47 PM, Ian Bell wrote: > Sometimes you have no choice but to fall back to pip when conda chokes on > a package that it doesn't understand. So I have a hodgepodge of > pip-installed and conda-installed packages on my machine, and until conda > fully supports pip, it looks like it is going to stay that way. > > I'm fine not using pip and using conda, but the conda docs should tell you > how to get everything up and running easily with ipython. Adding the line > described in this thread would probably do it. > > Ian > > > On Fri, Feb 13, 2015 at 12:50 PM, Ryan Nelson > wrote: > >> Min, >> >> I just posted a little note about the pip issue on the Anaconda mailing >> list. We'll see what they say about including it by default. >> Hopefully, this solves Ian's problem. >> >> Ryan >> >> On Fri, Feb 13, 2015 at 2:12 PM, MinRK wrote: >> >>> Yeah, we can probably add some clarifications. >>> >>> I think it's a huge mistake that conda allows installing Python without >>> pip. This really shouldn't be allowed. >>> >>> -MinRK >>> >>> On Fri, Feb 13, 2015 at 10:59 AM, Ryan Nelson >>> wrote: >>> >>>> Yeah. The docs (http://ipython.org/install.html) should probably >>>> mention this if they are going to reference conda specifically. However, it >>>> is a conda-specific issue, so it might be more appropriate to point users >>>> to the continuum documentation instead. Especially, given that the IPython >>>> docs suggest installing the full Anaconda package (which has notebook) and >>>> do not mention Miniconda, which it looks like you are using. You can search >>>> the conda package repository pretty easily: >>>> http://conda.pydata.org/docs/examples/search.html >>>> But I agree that this it is not well documented. >>>> >>>> I have miniconda on a Linux distro, and fresh environments don't >>>> install pip. This caused some problems for me at first because it was using >>>> the system pip, which was no good. Do you have another Python install on >>>> your computer? You could do a `conda install pip` and make sure you have >>>> the Continuum version. >>>> >>>> Just out of curiosity, why would use want to use pip at all? It might >>>> be safer to install things using conda exclusively. You might run into >>>> problems with pip when you are trying to install modules that require >>>> compiled components such as Qt4/5. For example, the command `conda install >>>> ipython ipython-notebook ipython-qtconsole` will install ipython and all >>>> the dependencies, including a precompiled version of the Qt libraries. I >>>> don't think a `pip install pyqt4` will do that. (?) See here for more: >>>> >>>> http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda >>>> However, the answer here is a little misleading because the >>>> conda-installed pip will install packages that are conda-aware. That is, >>>> I've installed packages with the conda version of pip, and `conda list` >>>> will show these packages as being installed. >>>> >>>> On Fri, Feb 13, 2015 at 1:16 PM, Ian Bell wrote: >>>> >>>>> >>>>> >>>>> On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson >>>>> wrote: >>>>> >>>>>> With Anaconda, you can use `conda` to install these packages. >>>>>> >>>>>> >>>>>> $ source activate your_env # Not necessary for root environment >>>>>> $ conda install ipython ipython-notebook ipython-qtconsole >>>>>> >>>>> >>>>> Exactly this should be on the website. Its not obvious what conda >>>>> package is required to get full notebook support. The >>>>> >>>>> conda update ipython >>>>> >>>>> command doesn't do it. >>>>> >>>>> >>>>>> >>>>>> On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell >>>>>> wrote: >>>>>> >>>>>>> I tried to install ipython+dependencies on a new machine, and it >>>>>>> dies when it tries to install the dependencies: >>>>>>> >>>>>>> C:\Users\ihb>pip install ipython[all] >>>>>>> Requirement already satisfied (use --upgrade to upgrade): >>>>>>> ipython[all] in >>>>>>> c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >>>>>>> Exception: >>>>>>> Traceback (most recent call last): >>>>>>> File >>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >>>>>>> line 232, in main >>>>>>> status = self.run(options, args) >>>>>>> File >>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >>>>>>> line 339, in run >>>>>>> requirement_set.prepare_files(finder) >>>>>>> File >>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >>>>>>> line 436, in prepare_files >>>>>>> req_to_install.extras): >>>>>>> File >>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >>>>>>> line 2504, in requires >>>>>>> "%s has no such extra feature %r" % (self, ext) >>>>>>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >>>>>>> >>>>>>> My python: >>>>>>> >>>>>>> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, >>>>>>> 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 >>>>>>> Type "help", "copyright", "credits" or "license" for more >>>>>>> information. >>>>>>> Anaconda is brought to you by Continuum Analytics. >>>>>>> Please check out: http://continuum.io/thanks and https://binstar.org >>>>>>> >>>>>>> _______________________________________________ >>>>>>> IPython-dev mailing list >>>>>>> IPython-dev at scipy.org >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Fri Feb 13 16:59:54 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Fri, 13 Feb 2015 13:59:54 -0800 Subject: [IPython-dev] Launching Jupyter Notebook Sharing on Quantopian In-Reply-To: References: <1423679451758-5085970.post@n6.nabble.com> Message-ID: SO awesome! On Wed, Feb 11, 2015 at 11:58 AM, Fernando Perez wrote: > This is awesome, Scott! Absolutely thrilled to see this... > > As we look at the integration of Fabian's gallery with nbviewer (as per > last week's meeting), we should definitely follow with this kind of tool... > > Thanks for sharing this, great job by you and the whole Quantopian team! > > Cheers > > f > > On Wed, Feb 11, 2015 at 10:30 AM, ssanderson > wrote: > >> Hi All, >> >> At the dev meeting last week we talked a bit about the future of indexing >> and sharing IPython/Jupyter notebooks publicly, and I mentioned that we've >> been working on adding sharing of notebooks to Quantopian's research >> platform alpha. We launched that system this week, so I thought it might >> be >> helpful to walk through our design as an example of what sharing might >> look >> like in the main notebook project. I'm also just super proud of our team >> for building this and want to show off all their hard work :) >> >> The backend is basically just nbconvert plus S3 bucket storage and some >> custom sanitization logic >> to guard against XSS. >> >> The frontend consists of an nbextension that adds a share button to each >> cell on mouseover. >> >> >> >> On hitting the share button we create a window where you can add a title >> and >> description in markdown (the javascript for this is in the same >> nbextension): >> >> >> >> Upon submission, we mark the shared cell as a "preview cell" in its >> metadata >> and then post it to an NBConvert handler that creates a full HTML >> rendering >> of the notebook, plus a stripped down preview of just the selected cell. >> These get stored in S3 and are used by our main application to create new >> forum posts. Here's an example of a notebook that we shared today with >> our >> community: >> >> >> https://www.quantopian.com/posts/research-investing-in-women-led-fortune-1000-companies >> >> Thanks to the IPython/Jupyter team for building an amazing tool upon which >> we can build something like this. I'm incredibly excited to see how much >> the project has progressed in the short time that I've been working on our >> integration. >> >> -Scott >> >> >> >> >> >> >> -- >> View this message in context: >> http://python.6.x6.nabble.com/Launching-Jupyter-Notebook-Sharing-on-Quantopian-tp5085970.html >> Sent from the IPython - Development mailing list archive at Nabble.com. >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Fri Feb 13 17:12:44 2015 From: benjaminrk at gmail.com (MinRK) Date: Fri, 13 Feb 2015 14:12:44 -0800 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: Thanks! That's a different repo: https://github.com/ipython/ipython-website On Fri, Feb 13, 2015 at 1:52 PM, Ian Bell wrote: > I'm trying to put together a PR for this, but I can't find the right > source file to edit, its not this one: > https://github.com/ipython/ipython/blob/master/docs/source/install/install.rst > > I want to edit this file: http://ipython.org/install.html > > On Fri, Feb 13, 2015 at 2:47 PM, Ian Bell wrote: > >> Sometimes you have no choice but to fall back to pip when conda chokes on >> a package that it doesn't understand. So I have a hodgepodge of >> pip-installed and conda-installed packages on my machine, and until conda >> fully supports pip, it looks like it is going to stay that way. >> >> I'm fine not using pip and using conda, but the conda docs should tell >> you how to get everything up and running easily with ipython. Adding the >> line described in this thread would probably do it. >> >> Ian >> >> >> On Fri, Feb 13, 2015 at 12:50 PM, Ryan Nelson >> wrote: >> >>> Min, >>> >>> I just posted a little note about the pip issue on the Anaconda mailing >>> list. We'll see what they say about including it by default. >>> Hopefully, this solves Ian's problem. >>> >>> Ryan >>> >>> On Fri, Feb 13, 2015 at 2:12 PM, MinRK wrote: >>> >>>> Yeah, we can probably add some clarifications. >>>> >>>> I think it's a huge mistake that conda allows installing Python without >>>> pip. This really shouldn't be allowed. >>>> >>>> -MinRK >>>> >>>> On Fri, Feb 13, 2015 at 10:59 AM, Ryan Nelson >>>> wrote: >>>> >>>>> Yeah. The docs (http://ipython.org/install.html) should probably >>>>> mention this if they are going to reference conda specifically. However, it >>>>> is a conda-specific issue, so it might be more appropriate to point users >>>>> to the continuum documentation instead. Especially, given that the IPython >>>>> docs suggest installing the full Anaconda package (which has notebook) and >>>>> do not mention Miniconda, which it looks like you are using. You can search >>>>> the conda package repository pretty easily: >>>>> http://conda.pydata.org/docs/examples/search.html >>>>> But I agree that this it is not well documented. >>>>> >>>>> I have miniconda on a Linux distro, and fresh environments don't >>>>> install pip. This caused some problems for me at first because it was using >>>>> the system pip, which was no good. Do you have another Python install on >>>>> your computer? You could do a `conda install pip` and make sure you have >>>>> the Continuum version. >>>>> >>>>> Just out of curiosity, why would use want to use pip at all? It might >>>>> be safer to install things using conda exclusively. You might run into >>>>> problems with pip when you are trying to install modules that require >>>>> compiled components such as Qt4/5. For example, the command `conda install >>>>> ipython ipython-notebook ipython-qtconsole` will install ipython and all >>>>> the dependencies, including a precompiled version of the Qt libraries. I >>>>> don't think a `pip install pyqt4` will do that. (?) See here for more: >>>>> >>>>> http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda >>>>> However, the answer here is a little misleading because the >>>>> conda-installed pip will install packages that are conda-aware. That is, >>>>> I've installed packages with the conda version of pip, and `conda list` >>>>> will show these packages as being installed. >>>>> >>>>> On Fri, Feb 13, 2015 at 1:16 PM, Ian Bell >>>>> wrote: >>>>> >>>>>> >>>>>> >>>>>> On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson >>>>>> wrote: >>>>>> >>>>>>> With Anaconda, you can use `conda` to install these packages. >>>>>>> >>>>>>> >>>>>>> $ source activate your_env # Not necessary for root environment >>>>>>> $ conda install ipython ipython-notebook ipython-qtconsole >>>>>>> >>>>>> >>>>>> Exactly this should be on the website. Its not obvious what conda >>>>>> package is required to get full notebook support. The >>>>>> >>>>>> conda update ipython >>>>>> >>>>>> command doesn't do it. >>>>>> >>>>>> >>>>>>> >>>>>>> On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell >>>>>>> wrote: >>>>>>> >>>>>>>> I tried to install ipython+dependencies on a new machine, and it >>>>>>>> dies when it tries to install the dependencies: >>>>>>>> >>>>>>>> C:\Users\ihb>pip install ipython[all] >>>>>>>> Requirement already satisfied (use --upgrade to upgrade): >>>>>>>> ipython[all] in >>>>>>>> c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >>>>>>>> Exception: >>>>>>>> Traceback (most recent call last): >>>>>>>> File >>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >>>>>>>> line 232, in main >>>>>>>> status = self.run(options, args) >>>>>>>> File >>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >>>>>>>> line 339, in run >>>>>>>> requirement_set.prepare_files(finder) >>>>>>>> File >>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >>>>>>>> line 436, in prepare_files >>>>>>>> req_to_install.extras): >>>>>>>> File >>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >>>>>>>> line 2504, in requires >>>>>>>> "%s has no such extra feature %r" % (self, ext) >>>>>>>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >>>>>>>> >>>>>>>> My python: >>>>>>>> >>>>>>>> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, >>>>>>>> 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 >>>>>>>> Type "help", "copyright", "credits" or "license" for more >>>>>>>> information. >>>>>>>> Anaconda is brought to you by Continuum Analytics. >>>>>>>> Please check out: http://continuum.io/thanks and >>>>>>>> https://binstar.org >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> IPython-dev mailing list >>>>>>>> IPython-dev at scipy.org >>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> IPython-dev mailing list >>>>>>> IPython-dev at scipy.org >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.h.bell at gmail.com Fri Feb 13 17:25:19 2015 From: ian.h.bell at gmail.com (Ian Bell) Date: Fri, 13 Feb 2015 15:25:19 -0700 Subject: [IPython-dev] Installation docs out of date In-Reply-To: References: Message-ID: Ah ok, makes sense. Here's the PR: https://github.com/ipython/ipython-website/pull/81 On Fri, Feb 13, 2015 at 3:12 PM, MinRK wrote: > Thanks! That's a different repo: > https://github.com/ipython/ipython-website > > > On Fri, Feb 13, 2015 at 1:52 PM, Ian Bell wrote: > >> I'm trying to put together a PR for this, but I can't find the right >> source file to edit, its not this one: >> https://github.com/ipython/ipython/blob/master/docs/source/install/install.rst >> >> I want to edit this file: http://ipython.org/install.html >> >> On Fri, Feb 13, 2015 at 2:47 PM, Ian Bell wrote: >> >>> Sometimes you have no choice but to fall back to pip when conda chokes >>> on a package that it doesn't understand. So I have a hodgepodge of >>> pip-installed and conda-installed packages on my machine, and until conda >>> fully supports pip, it looks like it is going to stay that way. >>> >>> I'm fine not using pip and using conda, but the conda docs should tell >>> you how to get everything up and running easily with ipython. Adding the >>> line described in this thread would probably do it. >>> >>> Ian >>> >>> >>> On Fri, Feb 13, 2015 at 12:50 PM, Ryan Nelson >>> wrote: >>> >>>> Min, >>>> >>>> I just posted a little note about the pip issue on the Anaconda mailing >>>> list. We'll see what they say about including it by default. >>>> Hopefully, this solves Ian's problem. >>>> >>>> Ryan >>>> >>>> On Fri, Feb 13, 2015 at 2:12 PM, MinRK wrote: >>>> >>>>> Yeah, we can probably add some clarifications. >>>>> >>>>> I think it's a huge mistake that conda allows installing Python >>>>> without pip. This really shouldn't be allowed. >>>>> >>>>> -MinRK >>>>> >>>>> On Fri, Feb 13, 2015 at 10:59 AM, Ryan Nelson >>>>> wrote: >>>>> >>>>>> Yeah. The docs (http://ipython.org/install.html) should probably >>>>>> mention this if they are going to reference conda specifically. However, it >>>>>> is a conda-specific issue, so it might be more appropriate to point users >>>>>> to the continuum documentation instead. Especially, given that the IPython >>>>>> docs suggest installing the full Anaconda package (which has notebook) and >>>>>> do not mention Miniconda, which it looks like you are using. You can search >>>>>> the conda package repository pretty easily: >>>>>> http://conda.pydata.org/docs/examples/search.html >>>>>> But I agree that this it is not well documented. >>>>>> >>>>>> I have miniconda on a Linux distro, and fresh environments don't >>>>>> install pip. This caused some problems for me at first because it was using >>>>>> the system pip, which was no good. Do you have another Python install on >>>>>> your computer? You could do a `conda install pip` and make sure you have >>>>>> the Continuum version. >>>>>> >>>>>> Just out of curiosity, why would use want to use pip at all? It might >>>>>> be safer to install things using conda exclusively. You might run into >>>>>> problems with pip when you are trying to install modules that require >>>>>> compiled components such as Qt4/5. For example, the command `conda install >>>>>> ipython ipython-notebook ipython-qtconsole` will install ipython and all >>>>>> the dependencies, including a precompiled version of the Qt libraries. I >>>>>> don't think a `pip install pyqt4` will do that. (?) See here for more: >>>>>> >>>>>> http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda >>>>>> However, the answer here is a little misleading because the >>>>>> conda-installed pip will install packages that are conda-aware. That is, >>>>>> I've installed packages with the conda version of pip, and `conda list` >>>>>> will show these packages as being installed. >>>>>> >>>>>> On Fri, Feb 13, 2015 at 1:16 PM, Ian Bell >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Fri, Feb 13, 2015 at 9:12 AM, Ryan Nelson >>>>>>> wrote: >>>>>>> >>>>>>>> With Anaconda, you can use `conda` to install these packages. >>>>>>>> >>>>>>>> >>>>>>>> $ source activate your_env # Not necessary for root environment >>>>>>>> $ conda install ipython ipython-notebook ipython-qtconsole >>>>>>>> >>>>>>> >>>>>>> Exactly this should be on the website. Its not obvious what conda >>>>>>> package is required to get full notebook support. The >>>>>>> >>>>>>> conda update ipython >>>>>>> >>>>>>> command doesn't do it. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> On Fri, Feb 13, 2015 at 11:06 AM, Ian Bell >>>>>>>> wrote: >>>>>>>> >>>>>>>>> I tried to install ipython+dependencies on a new machine, and it >>>>>>>>> dies when it tries to install the dependencies: >>>>>>>>> >>>>>>>>> C:\Users\ihb>pip install ipython[all] >>>>>>>>> Requirement already satisfied (use --upgrade to upgrade): >>>>>>>>> ipython[all] in >>>>>>>>> c:\users\ihb\appdata\local\continuum\miniconda\lib\site-packages >>>>>>>>> Exception: >>>>>>>>> Traceback (most recent call last): >>>>>>>>> File >>>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\basecommand.py", >>>>>>>>> line 232, in main >>>>>>>>> status = self.run(options, args) >>>>>>>>> File >>>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\commands\install.py", >>>>>>>>> line 339, in run >>>>>>>>> requirement_set.prepare_files(finder) >>>>>>>>> File >>>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\req\req_set.py", >>>>>>>>> line 436, in prepare_files >>>>>>>>> req_to_install.extras): >>>>>>>>> File >>>>>>>>> "C:\Users\ihb\AppData\Local\Continuum\Miniconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", >>>>>>>>> line 2504, in requires >>>>>>>>> "%s has no such extra feature %r" % (self, ext) >>>>>>>>> UnknownExtra: ipython 2.4.1 has no such extra feature 'all' >>>>>>>>> >>>>>>>>> My python: >>>>>>>>> >>>>>>>>> Python 2.7.8 |Continuum Analytics, Inc.| (default, Jul 2 2014, >>>>>>>>> 15:12:11) [MSC v.1500 64 bit (AMD64)] on win32 >>>>>>>>> Type "help", "copyright", "credits" or "license" for more >>>>>>>>> information. >>>>>>>>> Anaconda is brought to you by Continuum Analytics. >>>>>>>>> Please check out: http://continuum.io/thanks and >>>>>>>>> https://binstar.org >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> IPython-dev mailing list >>>>>>>>> IPython-dev at scipy.org >>>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> IPython-dev mailing list >>>>>>>> IPython-dev at scipy.org >>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> IPython-dev mailing list >>>>>>> IPython-dev at scipy.org >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Fri Feb 13 17:48:39 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 13 Feb 2015 14:48:39 -0800 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: On 13 February 2015 at 12:22, John Omernik wrote: > So there is not a way to programmatically add a couple of cells in > iPython Notebook? > Not really from the kernel, where the user's code is executed. The idea is that the code in the notebook doesn't know about the notebook document. What are you trying to achieve, in a larger sense? We may be able to suggest another way to do it. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Fri Feb 13 18:17:24 2015 From: benjaminrk at gmail.com (MinRK) Date: Fri, 13 Feb 2015 15:17:24 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 Message-ID: The first release candidate for IPython 3.0 is out. As with the beta, please check it out and report any problems. Hopefully this will become IPython 3.0 final by the end of the month. As with the beta, you can install the release candidate: pip install --pre "ipython[all]" See the release notes for what?s new. Thanks everyone for helping get this out. -Min RK, on behalf of the IPython team ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvain.corlay at gmail.com Fri Feb 13 23:16:30 2015 From: sylvain.corlay at gmail.com (Sylvain Corlay) Date: Fri, 13 Feb 2015 23:16:30 -0500 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: Message-ID: Congrats! On Fri, Feb 13, 2015 at 6:17 PM, MinRK wrote: > The first release candidate for IPython 3.0 is out. As with the beta, > please check it out and report any problems. Hopefully this will become > IPython 3.0 final by the end of the month. > > As with the beta, you can install the release candidate: > > pip install --pre "ipython[all]" > > See the release notes > > for what?s new. > > Thanks everyone for helping get this out. > -Min RK, on behalf of the IPython team > ? > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Sat Feb 14 10:40:02 2015 From: john at omernik.com (John Omernik) Date: Sat, 14 Feb 2015 09:40:02 -0600 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: Basically, I am trying to have some helper magic functions that fill in code for me. I've bene able to achieve this through putting two lines into one cell :) Thanks though, (I feel kinda silly that I had to ask :) On Fri, Feb 13, 2015 at 4:48 PM, Thomas Kluyver wrote: > On 13 February 2015 at 12:22, John Omernik wrote: >> >> So there is not a way to programmatically add a couple of cells in >> iPython Notebook? > > > Not really from the kernel, where the user's code is executed. The idea is > that the code in the notebook doesn't know about the notebook document. > > What are you trying to achieve, in a larger sense? We may be able to suggest > another way to do it. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From anton.akhmerov at gmail.com Sat Feb 14 11:55:47 2015 From: anton.akhmerov at gmail.com (Anton Akhmerov) Date: Sat, 14 Feb 2015 17:55:47 +0100 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: Hi everyone, I need the same functionality (programmatic access of the notebook) for the following: I want to make an auto-toc function, which would generate toc inside the notebook (so not like min's extension). The reason why an extension doesn't suit me, is because I want everything to work in e.g. nbviewer. Do I understand correctly that I need to communicate with Javascript? Thanks, Anton On Sat, Feb 14, 2015 at 4:40 PM, John Omernik wrote: > Basically, I am trying to have some helper magic functions that fill > in code for me. I've bene able to achieve this through putting two > lines into one cell :) Thanks though, (I feel kinda silly that I had > to ask :) > > On Fri, Feb 13, 2015 at 4:48 PM, Thomas Kluyver wrote: >> On 13 February 2015 at 12:22, John Omernik wrote: >>> >>> So there is not a way to programmatically add a couple of cells in >>> iPython Notebook? >> >> >> Not really from the kernel, where the user's code is executed. The idea is >> that the code in the notebook doesn't know about the notebook document. >> >> What are you trying to achieve, in a larger sense? We may be able to suggest >> another way to do it. >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From doug.blank at gmail.com Sat Feb 14 12:18:50 2015 From: doug.blank at gmail.com (Doug Blank) Date: Sat, 14 Feb 2015 12:18:50 -0500 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: On Sat, Feb 14, 2015 at 11:55 AM, Anton Akhmerov wrote: > Hi everyone, > > I need the same functionality (programmatic access of the notebook) > for the following: I want to make an auto-toc function, which would > generate toc inside the notebook (so not like min's extension). The > reason why an extension doesn't suit me, is because I want everything > to work in e.g. nbviewer. Do I understand correctly that I need to > communicate with Javascript? > Yes, you probably want to do this with Javascript. But there is probably nothing that needs to be done after you create the TOC, if you create standard markdown cells. Here is an extension that creates (or updates) the TOC when you click on it. It doesn't auto-update as you change headings, but you could probably easy make such an extension. Also shown numbering, and section moving. Has been updated to work with IPython 3. https://www.youtube.com/watch?v=YbM8rrj-Bms -Doug > > Thanks, > Anton > > > On Sat, Feb 14, 2015 at 4:40 PM, John Omernik wrote: > > Basically, I am trying to have some helper magic functions that fill > > in code for me. I've bene able to achieve this through putting two > > lines into one cell :) Thanks though, (I feel kinda silly that I had > > to ask :) > > > > On Fri, Feb 13, 2015 at 4:48 PM, Thomas Kluyver > wrote: > >> On 13 February 2015 at 12:22, John Omernik wrote: > >>> > >>> So there is not a way to programmatically add a couple of cells in > >>> iPython Notebook? > >> > >> > >> Not really from the kernel, where the user's code is executed. The idea > is > >> that the code in the notebook doesn't know about the notebook document. > >> > >> What are you trying to achieve, in a larger sense? We may be able to > suggest > >> another way to do it. > >> > >> Thomas > >> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.trem at gmail.com Sat Feb 14 13:22:54 2015 From: david.trem at gmail.com (=?windows-1252?Q?Tr=E9mouilles_David?=) Date: Sat, 14 Feb 2015 19:22:54 +0100 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: <54DF927E.2070703@gmail.com> Hi, In this issue https://github.com/ipython/ipython/issues/4983 on 10 feb 2014, jfederer proposed a piece of code to achieve grammatical cell creation. I don't know whether it still work with the current ipython notebook version... Regards, David Le 14/02/15 16:40, John Omernik a ?crit : > Basically, I am trying to have some helper magic functions that fill > in code for me. I've bene able to achieve this through putting two > lines into one cell :) Thanks though, (I feel kinda silly that I had > to ask :) > > On Fri, Feb 13, 2015 at 4:48 PM, Thomas Kluyver wrote: >> On 13 February 2015 at 12:22, John Omernik wrote: >>> So there is not a way to programmatically add a couple of cells in >>> iPython Notebook? >> >> Not really from the kernel, where the user's code is executed. The idea is >> that the code in the notebook doesn't know about the notebook document. >> >> What are you trying to achieve, in a larger sense? We may be able to suggest >> another way to do it. >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From anton.akhmerov at gmail.com Sat Feb 14 16:23:23 2015 From: anton.akhmerov at gmail.com (Anton Akhmerov) Date: Sat, 14 Feb 2015 22:23:23 +0100 Subject: [IPython-dev] set_next_input() multiple times In-Reply-To: References: Message-ID: > Here is an extension that creates (or updates) the TOC when you click on it. > It doesn't auto-update as you change headings, but you could probably easy > make such an extension. Also shown numbering, and section moving. Has been > updated to work with IPython 3. Thanks a lot, this is just what I need. Best, Anton > -Doug > > >> >> >> Thanks, >> Anton >> >> >> On Sat, Feb 14, 2015 at 4:40 PM, John Omernik wrote: >> > Basically, I am trying to have some helper magic functions that fill >> > in code for me. I've bene able to achieve this through putting two >> > lines into one cell :) Thanks though, (I feel kinda silly that I had >> > to ask :) >> > >> > On Fri, Feb 13, 2015 at 4:48 PM, Thomas Kluyver >> > wrote: >> >> On 13 February 2015 at 12:22, John Omernik wrote: >> >>> >> >>> So there is not a way to programmatically add a couple of cells in >> >>> iPython Notebook? >> >> >> >> >> >> Not really from the kernel, where the user's code is executed. The idea >> >> is >> >> that the code in the notebook doesn't know about the notebook document. >> >> >> >> What are you trying to achieve, in a larger sense? We may be able to >> >> suggest >> >> another way to do it. >> >> >> >> Thomas >> >> >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From nick.bollweg at gmail.com Sat Feb 14 17:55:35 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Sat, 14 Feb 2015 17:55:35 -0500 Subject: [IPython-dev] nosebook: notebooks-as-documentation-as-tests Message-ID: Just wanted to plug a little nose extension that I've just gotten working: https://github.com/bollwyvl/nosebook nosebook finds notebooks that look like tests, and for each notebook, starts a kernel, runs the code cells and compares the output to what was in the original notebook. It can be configured to find different notebooks, as well as strip out nasty bits. It's not a full nose/notebook integration, as it lacks lots of features like setup and teardown, but should make it easier to keep documentation in notebooks fresh with respect to code changes. It reuses IPython.kernel.tests.util, which is probably not the best long-term solution, as that probably isn't meant as a public API, but it was the quickest way to get it up and running. Right now it's not backward compatible with IPython 2.x, but that might be added if there is outcry. Interested in feedback! -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Sat Feb 14 19:28:00 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 14 Feb 2015 16:28:00 -0800 Subject: [IPython-dev] nosebook: notebooks-as-documentation-as-tests In-Reply-To: References: Message-ID: Thanks for this, Nicholas - there has been quite a bit of discussion about having something like doctest for notebooks, so it's great to see an implementation. I imagine the tricky bit will be deciding which bits of output are changeable and should be ignored. I think doctest recognises three things that are allowed to vary: - reprs - Python tracebacks - ... ellipsis to explicitly mark variable sections (this might need an extra option enabled, I forget) Best wishes, Thomas On 14 February 2015 at 14:55, Nicholas Bollweg wrote: > Just wanted to plug a little nose extension that I've just gotten working: > > https://github.com/bollwyvl/nosebook > > nosebook finds notebooks that look like tests, and for each notebook, > starts a kernel, runs the code cells and compares the output to what was in > the original notebook. It can be configured to find different notebooks, as > well as strip out nasty bits. > > It's not a full nose/notebook integration, as it lacks lots of features > like setup and teardown, but should make it easier to keep documentation in > notebooks fresh with respect to code changes. > > It reuses IPython.kernel.tests.util, which is probably not the best > long-term solution, as that probably isn't meant as a public API, but it > was the quickest way to get it up and running. Right now it's not backward > compatible with IPython 2.x, but that might be added if there is outcry. > > Interested in feedback! > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Sat Feb 14 20:22:17 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Sat, 14 Feb 2015 20:22:17 -0500 Subject: [IPython-dev] nosebook: notebooks-as-documentation-as-tests In-Reply-To: References: Message-ID: Yeah i didn't enable any replacements by default, though tracebacks are stripped, as they are easy to find in the comms. There are examples in the tests, but i probably need to document those main edge cases better. On Feb 14, 2015 7:28 PM, "Thomas Kluyver" wrote: > Thanks for this, Nicholas - there has been quite a bit of discussion about > having something like doctest for notebooks, so it's great to see an > implementation. > > I imagine the tricky bit will be deciding which bits of output are > changeable and should be ignored. I think doctest recognises three things > that are allowed to vary: > > - reprs > - Python tracebacks > - ... ellipsis to explicitly mark variable sections (this might need an > extra option enabled, I forget) > > Best wishes, > Thomas > > On 14 February 2015 at 14:55, Nicholas Bollweg > wrote: > >> Just wanted to plug a little nose extension that I've just gotten working: >> >> https://github.com/bollwyvl/nosebook >> >> nosebook finds notebooks that look like tests, and for each notebook, >> starts a kernel, runs the code cells and compares the output to what was in >> the original notebook. It can be configured to find different notebooks, as >> well as strip out nasty bits. >> >> It's not a full nose/notebook integration, as it lacks lots of features >> like setup and teardown, but should make it easier to keep documentation in >> notebooks fresh with respect to code changes. >> >> It reuses IPython.kernel.tests.util, which is probably not the best >> long-term solution, as that probably isn't meant as a public API, but it >> was the quickest way to get it up and running. Right now it's not backward >> compatible with IPython 2.x, but that might be added if there is outcry. >> >> Interested in feedback! >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Sun Feb 15 11:08:06 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Sun, 15 Feb 2015 08:08:06 -0800 Subject: [IPython-dev] [jupyter] Jupyter-Drive (integration with google drive) beta. In-Reply-To: References: <523B928E-4BC9-47DC-9514-4EB0F5CF3DDE@gmail.com> <70ED894B-E84A-488A-9646-EA0FD418B4A1@gmail.com> Message-ID: > Can you explain what changes in IPython are required for real-time collaboration? We are discussing that, among other as https://github.com/ipython/ipython/issues/7784 among other. > Will the OT happen on the IPython server? OT happen on all sides, for the time being only on GDrive, and gapi javascript library. The computation of the permeation might only happen on the server. > Will it be tied to google-drive? In the first time yes to get it working. But we plan on making it pluggable, and do our best so that you can have a version that works on close network and purely open-source software. Though we will need help for that. -- M > > > > On Saturday, February 7, 2015 at 9:23:09 PM UTC+2, Kester Tong wrote: > I'll have a look tomorrow. > I'll re-look at the implementation but I think we could even have an even > more generic mixed content manager than takes N contents manager and prefixes > and exposes each of them. > > I suppose we could probably try with Scott (IIRC) postgres backend > as an exercise. > > I like this idea. It would be slightly more general and consistent than what we currently use. The implementation would be simpler since the first path component will always tell you which content manager to use. Maybe the mixed content manager could be part of IPython? We could test it out in Jupyter Drive first and move it later (still using regular contents manager by default). > > Kester > > > -- > M > > > > > > > _______________________________________________ > IPython-dev mailing list > IPyth... at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > -- > 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+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d265e589-ee94-461b-b607-1591bcccd8a7%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexgarciac at gmail.com Sun Feb 15 21:21:14 2015 From: alexgarciac at gmail.com (Alexander Garcia Castro) Date: Sun, 15 Feb 2015 21:21:14 -0500 Subject: [IPython-dev] ipython in scholarly communication In-Reply-To: References: Message-ID: Dear all. I am very new to iphyton, however I am impressed. this is precisely the kind of scholarly communication I would like to see presented at the Sepublica workshop. I want to congratulate everyone for the great work and encourage people in this community to submit to our workshop. we have intentionally said that ours is a format free workshop. this means that we are not married to the conventional paper (narrative structure and format). Instead, we would love to receive something that allows people in our community, semantic web, to clearly see a novel method supporting and redefining scholarly communication in action. I want to take this opportunity to encourage everyone on this community to challenge us with novel submissions. I want to encourage everyone here to come to our workshop and let us see your work and learn from you. Dear all, Sepublica is particularly interested in getting submissions from ipython usrs/developers. we are very interested in seeing new ways of scholarly communication in action and we believe that ipython illustrates a path to be followed. SePublica 2015: Do show, do not tell! ===================================== Workshop website: http://sepublica.info/ Event hashtags: #SePublica #ESWC2015 in conjunction with ESWC 2015 The 12th European Semantic Web Conference http://2015.eswc-conferences.org/ At SePublica we are interested in addressing the question, how is Semantic Web technology being used as part of publication workflows. Challenge us with a creative submission. Let us see and experience your take on publications for the Web of data; we want to see NEW ideas in action, INNOVATION that makes our lives easier. Is it about scholarly communication? Then what problem are you solving? How are you making the content interoperable? How is this different/better from traditional approaches? Important Dates --------------- * Submission deadline: 2015-03-06 * Notifications: 2015-04-03 * Camera ready version: 2015-04-17 Submission ---------- Easychair: https://www.easychair.org/conferences/?conf=sepublica2015 Submissions will be peer reviewed. Accepted works have to be presented at the workshop (requires registering for the ESWC conference and the workshop). Every accepted submission will be published in the proceedings of the workshop. Submission Types ---------------- ### Call for Submissions Deadline: 2015-03-06. Authors may submit their content in whatever way they consider is best for their purposes (e.g., HTML, RDFS/OWL, IPython, PDF, or any publicly executable script, etc). Please feel free to contact us to discuss your particular case if necessary. We will be happy to assist authors and support them as much as we can. Submissions are format free, GIT URLs are accepted just like OWL, XML etc. However, reviewers should not have to install software in order to review the submissions. Datasets are also accepted. In all cases everything must be publicly available. For those of you submitting a PDF please use the LNCS format, 12 pages is the limit ?including references. Please, note that (X)HTML(+RDFa) submissions are also welcome as long as the layout complies with the LNCS style. For example, authors may use the template provided at https://github.com/csarven/linked-research ### Call for Polemics Deadline: 2015-04-24. We would like to invite authors to send us a one page manuscript, 20 lines max, describing their position with respect to new technologies supporting the publication workflow: What are the most pressing issues to be addressed? What is their position with respect to the overall problem? What innovation is needed? etc. Polemics authors will have only 5 minutes to present; the format of this session is sequential, after each presentation the next follows with no questions in between. There will be a discussion and summary of all the issues at the end of all the polemics session. Issues to be addressed ---------------------- * Should papers be semantically annotated? * How would you search or query for research objects? * How can research objects be reused? * What is an executable semantic paper? * How can we create interactive research documents to better communicate and educate? * Is there a format for semantic publishing or does it require a combination of formats? * How can research documents be persistent and archived? Which formats are preferable and why? * If we subscribe to science, free and open access to knowledge, what's the purpose of the arrangement between conferences and publishers? Or can big conferences manage the publication themselves? * Is there visible change towards semantic authoring and publishing? If not, what are some of the underlying challenges to get there? * Assume a 3-year plan to transition the SW research community to completely publish using SW technologies. Identify the milestones and explain how it would happen. * Backend use of semantics by publishers in book, news, and scholarly publishing * Publishing data-driven arguments for general news consumption or in scholarly papers * Historical changes in publishing since the advent of online publishing: what is going right? Organizing Committee -------------------- * Phillip Lord * Alexander Garcia Castro * Sarven Capadisli * Jodi Schneider On Fri, Jan 30, 2015 at 2:32 PM, Nicholas Bollweg wrote: > I'm pretty interested in this. > > Here's the last discussion I recall about SW on this list: > > http://python.6.x6.nabble.com/Notebook-format-quot-incompatible-quot-changes-td5076324.html#a5076589 > > We talked at one point about creating an IPEP for incrementally adding > linked data to various things across the ecosystem, perhaps this is a good > time to dust that off. Here is the IPEP that I never actually posted: > http://nbviewer.ipython.org/gist/bollwyvl/6edda34649ba4b5cbaf9 > > Forks, comments welcome! > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Alexander Garcia http://www.alexandergarcia.name/ http://www.usefilm.com/photographer/75943.html http://www.linkedin.com/in/alexgarciac -------------- next part -------------- An HTML attachment was scrubbed... URL: From max_linke at gmx.de Mon Feb 16 04:44:07 2015 From: max_linke at gmx.de (Max Linke) Date: Mon, 16 Feb 2015 10:44:07 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: Message-ID: <54E1BBE7.6030204@gmx.de> Hi Thanks for all your work. The new version runs smooths besides using extensions for the notebooks. Is there a document describing how to migrate my custom.js to 3.0? I currently use 'IPython.load_extensions()' in my custom.js which produces the error 'TypeError: IPython.load_extensions() is not a function'. Has this function been deprecated or replaced recently? This is the full content of my custom.js IPython.load_extensions('toc', 'gist', 'hide_input_all', 'calico-spell-check', 'calico-document-tools', 'theme_toggle'); $([IPython.events]).on('app_initialized.NotebookApp', function(){ require(['/nbextensions/codefolding/codefolding.js']) }); $([IPython.events]).on('app_initialized.NotebookApp', function(){ IPython.load_extensions('macro-cell'); }); best Max On 02/14/2015 12:17 AM, MinRK wrote: > The first release candidate for IPython 3.0 is out. As with the beta, > please check it out and report any problems. Hopefully this will become > IPython 3.0 final by the end of the month. > > As with the beta, you can install the release candidate: > > pip install --pre "ipython[all]" > > See the release notes > for > what?s new. > > Thanks everyone for helping get this out. > -Min RK, on behalf of the IPython team > ? > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From takowl at gmail.com Mon Feb 16 13:37:46 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 16 Feb 2015 10:37:46 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: <54E1BBE7.6030204@gmx.de> References: <54E1BBE7.6030204@gmx.de> Message-ID: On 16 February 2015 at 01:44, Max Linke wrote: > Is there a document describing how to migrate my custom.js to 3.0? > I currently use 'IPython.load_extensions()' in my custom.js which > produces the error 'TypeError: IPython.load_extensions() is not a > function'. Has this function been deprecated or replaced recently? > It's still the public API for loading extensions, but it might not have been loaded when your custom.js is run. I see you currently have a call to load_extensions() in your custom.js outside any event handler - if you wrap that in: $([IPython.events]).on('app_initialized.NotebookApp', function(){ ... }); does it work? Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Feb 16 13:51:30 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 16 Feb 2015 10:51:30 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> Message-ID: Instead or in supplement of listening to events, you might want to use requires to be sure the dependencies are loaded in the right order. Cheers, -- M Le 16 f?vr. 2015 ? 10:37, Thomas Kluyver a ?crit : > On 16 February 2015 at 01:44, Max Linke wrote: > Is there a document describing how to migrate my custom.js to 3.0? > I currently use 'IPython.load_extensions()' in my custom.js which > produces the error 'TypeError: IPython.load_extensions() is not a > function'. Has this function been deprecated or replaced recently? > > It's still the public API for loading extensions, but it might not have been loaded when your custom.js is run. I see you currently have a call to load_extensions() in your custom.js outside any event handler - if you wrap that in: > > $([IPython.events]).on('app_initialized.NotebookApp', function(){ ... }); > > does it work? > > Thomas > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at payne.org Mon Feb 16 20:19:34 2015 From: andy at payne.org (Andrew Payne) Date: Mon, 16 Feb 2015 20:19:34 -0500 Subject: [IPython-dev] ITorch on IPython 3 -- problems? Message-ID: Has anyone gotten ITorch working on IPython 3.0b-anything (or GitHub HEAD)? I'm having problems, but wanted to compare notes before I dive into figuring out what's going on. For the Web notebook, when creating a new notebook, the notebook page comes up but the kernel starts hung (permanently running). (And you can't evaluate cells). For the console, there's never any output from the read-eval-print loop. Errors (such as syntax errors) are shown, but (a) there's never an "Out" value and (b) print output isn't shown. --debug output doesn't show anything that would suggest a root cause. (And if there's an ITorch mailing list, please redirect me. I couldn't find one). -andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Tue Feb 17 02:03:53 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 16 Feb 2015 23:03:53 -0800 Subject: [IPython-dev] ITorch on IPython 3 -- problems? In-Reply-To: References: Message-ID: On Mon, Feb 16, 2015 at 5:19 PM, Andrew Payne wrote: > > (And if there's an ITorch mailing list, please redirect me. I couldn't > find one). > maybe start by posting a quick ping as an issue on their github repo? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwaskom at stanford.edu Tue Feb 17 13:57:31 2015 From: mwaskom at stanford.edu (Michael Waskom) Date: Tue, 17 Feb 2015 10:57:31 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: Message-ID: Hi Min, It looks like the scaling of figures that are larger than the cell output div has changed in version 3. Previously the scaling would preserve the aspect ratio of the figure, but now it seems to just be scaling the width, and not the height. This change can make it a lot harder to predict what a large figure is going to look like, and is likely to confuse people who don't realize that IPython, not matplotlib is applying the scaling. Is this on purpose? Best, Michael On Fri, Feb 13, 2015 at 3:17 PM, MinRK wrote: > The first release candidate for IPython 3.0 is out. As with the beta, > please check it out and report any problems. Hopefully this will become > IPython 3.0 final by the end of the month. > > As with the beta, you can install the release candidate: > > pip install --pre "ipython[all]" > > See the release notes > > for what?s new. > > Thanks everyone for helping get this out. > -Min RK, on behalf of the IPython team > ? > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Feb 17 14:09:35 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 17 Feb 2015 11:09:35 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: Message-ID: <940C0CF6-2714-439E-B57A-D9D00946D9BC@gmail.com> No, it does not seem to be on purpose. It is a weird interaction between preventing image to be wider than notebook area and the JS that allow you to resize images. -- M Le 17 f?vr. 2015 ? 10:57, Michael Waskom a ?crit : > Hi Min, > > It looks like the scaling of figures that are larger than the cell output div has changed in version 3. > > Previously the scaling would preserve the aspect ratio of the figure, but now it seems to just be scaling the width, and not the height. > > This change can make it a lot harder to predict what a large figure is going to look like, and is likely to confuse people who don't realize that IPython, not matplotlib is applying the scaling. > > Is this on purpose? > > Best, > Michael > > On Fri, Feb 13, 2015 at 3:17 PM, MinRK wrote: > The first release candidate for IPython 3.0 is out. As with the beta, please check it out and report any problems. Hopefully this will become IPython 3.0 final by the end of the month. > > As with the beta, you can install the release candidate: > > pip install --pre "ipython[all]" > See the release notes for what?s new. > > Thanks everyone for helping get this out. > -Min RK, on behalf of the IPython team > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Tue Feb 17 14:10:38 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Tue, 17 Feb 2015 11:10:38 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: Message-ID: Thanks for the report, we have made some changes to this stuff recently and will get this fixed. Brian On Tue, Feb 17, 2015 at 10:57 AM, Michael Waskom wrote: > Hi Min, > > It looks like the scaling of figures that are larger than the cell output > div has changed in version 3. > > Previously the scaling would preserve the aspect ratio of the figure, but > now it seems to just be scaling the width, and not the height. > > This change can make it a lot harder to predict what a large figure is > going to look like, and is likely to confuse people who don't realize that > IPython, not matplotlib is applying the scaling. > > Is this on purpose? > > Best, > Michael > > On Fri, Feb 13, 2015 at 3:17 PM, MinRK wrote: > >> The first release candidate for IPython 3.0 is out. As with the beta, >> please check it out and report any problems. Hopefully this will become >> IPython 3.0 final by the end of the month. >> >> As with the beta, you can install the release candidate: >> >> pip install --pre "ipython[all]" >> >> See the release notes >> >> for what?s new. >> >> Thanks everyone for helping get this out. >> -Min RK, on behalf of the IPython team >> ? >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwaskom at stanford.edu Tue Feb 17 15:43:38 2015 From: mwaskom at stanford.edu (Michael Waskom) Date: Tue, 17 Feb 2015 12:43:38 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: Message-ID: Awesome, thanks guys! One other thing I have noticed is that, when shift-TABing to get the function docstring popover in the notebook, the help seems often bound to objects that have been added as arguments, and not to the function itself., i.e. func(a, b, [shift-TAB] will show me the docstring for the object that `b` points at, although this seems to only happen when an variable is being used. In other words, func(a, "b", [shift-TAB] will show me the docstring for `a`. Previously this would happen when using a function within the call, ie.e. func1(a, func2(b), [shift=TAB] would should me the docs for `func2` (even if I had closed parens on it). But the behavior has changed somewhat. On Tue, Feb 17, 2015 at 11:10 AM, Brian Granger wrote: > Thanks for the report, we have made some changes to this stuff recently > and will get this fixed. > > Brian > > On Tue, Feb 17, 2015 at 10:57 AM, Michael Waskom > wrote: > >> Hi Min, >> >> It looks like the scaling of figures that are larger than the cell output >> div has changed in version 3. >> >> Previously the scaling would preserve the aspect ratio of the figure, but >> now it seems to just be scaling the width, and not the height. >> >> This change can make it a lot harder to predict what a large figure is >> going to look like, and is likely to confuse people who don't realize that >> IPython, not matplotlib is applying the scaling. >> >> Is this on purpose? >> >> Best, >> Michael >> >> On Fri, Feb 13, 2015 at 3:17 PM, MinRK wrote: >> >>> The first release candidate for IPython 3.0 is out. As with the beta, >>> please check it out and report any problems. Hopefully this will become >>> IPython 3.0 final by the end of the month. >>> >>> As with the beta, you can install the release candidate: >>> >>> pip install --pre "ipython[all]" >>> >>> See the release notes >>> >>> for what?s new. >>> >>> Thanks everyone for helping get this out. >>> -Min RK, on behalf of the IPython team >>> ? >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > @ellisonbg on Twitter and GitHub > bgranger at calpoly.edu and ellisonbg at gmail.com > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From max_linke at gmx.de Tue Feb 17 16:25:52 2015 From: max_linke at gmx.de (Max Linke) Date: Tue, 17 Feb 2015 22:25:52 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> Message-ID: <54E3B1E0.3030902@gmx.de> Thanks for the help I found a way now that works reliable for me. require([ 'base/js/namespace', 'base/js/events' ], function(IPython, events) { events.on('app_initialized.NotebookApp', function(){ require(['/nbextensions/codefolding/codefolding.js']); IPython.load_extensions('toc', 'hide_input_all', 'macro-cell', 'calico-spell-check', 'calico-document-tools', 'theme_toggle'); }); }); I got it working through the tips here and looking at the examples of the current custom.js template. But since I don't know javascript or the libraries (require, jquery) used this is not really straight forward to arrive at this. In 2.4. I just needed to use 'IPython.load_extensions()' which was nice and really straight forward. Is it documented somewhere what the recommended way is of enabling extensions in the notebook? I can't find anything in the online docs and most extensions I find seem to use another way to load it. best Max On 02/16/2015 07:51 PM, Matthias Bussonnier wrote: > Instead or in supplement of listening to events, you might want to > use requires to be sure the dependencies are loaded in the right order. > > Cheers, > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From max_linke at gmx.de Tue Feb 17 16:43:47 2015 From: max_linke at gmx.de (Max Linke) Date: Tue, 17 Feb 2015 22:43:47 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> Message-ID: <54E3B613.2020301@gmx.de> Isn't there a guarantee about which functions are available when custom.js is loaded? The custom.js installed with the rc version says that classes and functions are available at load time and shows an example to add a custom keybinding like this. IPython.Cell.options_default.cm_config.extraKeys['Home'] ='goLineLeft'; I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with: IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] ='move_cell_down'; this gives the error "IPython.Cell undefined" and now new keybindings are defined. Wrapping it in a require statement like this also doesn't help require([ 'base/js/namespace', ], function(IPython) { IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] = 'move_cell_down'; }); I still get the same error that "IPython.Cell" is not defined. best Max On 02/16/2015 07:51 PM, Matthias Bussonnier wrote: > Instead or in supplement of listening to events, you might want to > use requires to be sure the dependencies are loaded in the right order. > > Cheers, > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From takowl at gmail.com Tue Feb 17 16:53:22 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 17 Feb 2015 13:53:22 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: <54E3B613.2020301@gmx.de> References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: On 17 February 2015 at 13:43, Max Linke wrote: > Isn't there a guarantee about which functions are available when > custom.js is loaded? > Currently, as far as I'm aware, no, there isn't. Possibly we should give one, though I think that's too late for 3.0 now. > I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with: > > IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] > There's a code snippet to restore Ctrl-J/Ctrl-K here: https://github.com/ipython/ipython/pull/7732#issuecomment-74519970 The shortcuts set in cm_config are only for Codemirror, i.e. they act within a single cell. Notebook shortcuts, e.g. for moving cells around, are defined elsewhere. > Is it documented somewhere what the recommended way is of enabling > extensions in the notebook? I can't find anything in the online docs and > most extensions I find seem to use another way to load it. Basically nothing about the JS API is documented yet, and this is kind of deliberate - most of it is still changing pretty fast, and we don't want to give a false impression of stability. In IPython 3, there is a way of storing declarative frontend config, including a set of extensions to load, so you don't have to manually edit custom.js to enable them. There is an extension built on top of this to provide a GUI for enabling and disabling extensions: https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From zaki.mughal at gmail.com Tue Feb 17 17:44:40 2015 From: zaki.mughal at gmail.com (Zakariyya Mughal) Date: Tue, 17 Feb 2015 16:44:40 -0600 Subject: [IPython-dev] IPython messaging spec for warnings with traceback Message-ID: <20150217224440.GL13270@janus.cbl.uh.edu> Hello, I'm working on the IPerl language kernel and I wanted to implement Perl's warning system. In the messaging spec, I can only return the extra fields for error names, traceback, etc. only if the status in the `execute_reply` message is 'error' . Since warnings do not halt the execution of the program, how should I approach this? I think the current way in IPython is to have warnings go to `stderr` rather than have a separate traceback mechanism. Regards, - Zaki Mughal From mwaskom at stanford.edu Tue Feb 17 17:45:41 2015 From: mwaskom at stanford.edu (Michael Waskom) Date: Tue, 17 Feb 2015 14:45:41 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: Ooop one more thing I've noticed. ctrl-j/k no longer appears to move cells, although that shortcut is still referenced here: http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb (not in the help popup though, so maybe those have been removed, which would make me sad). On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver wrote: > On 17 February 2015 at 13:43, Max Linke wrote: > >> Isn't there a guarantee about which functions are available when >> custom.js is loaded? >> > > Currently, as far as I'm aware, no, there isn't. Possibly we should give > one, though I think that's too late for 3.0 now. > > >> I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with: >> >> IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] >> > > There's a code snippet to restore Ctrl-J/Ctrl-K here: > https://github.com/ipython/ipython/pull/7732#issuecomment-74519970 > > The shortcuts set in cm_config are only for Codemirror, i.e. they act > within a single cell. Notebook shortcuts, e.g. for moving cells around, are > defined elsewhere. > > > Is it documented somewhere what the recommended way is of enabling > > extensions in the notebook? I can't find anything in the online docs and > > most extensions I find seem to use another way to load it. > > Basically nothing about the JS API is documented yet, and this is kind of > deliberate - most of it is still changing pretty fast, and we don't want to > give a false impression of stability. > > In IPython 3, there is a way of storing declarative frontend config, > including a set of extensions to load, so you don't have to manually edit > custom.js to enable them. There is an extension built on top of this to > provide a GUI for enabling and disabling extensions: > > > https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Feb 17 17:55:48 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 17 Feb 2015 14:55:48 -0800 Subject: [IPython-dev] IPython messaging spec for warnings with traceback In-Reply-To: <20150217224440.GL13270@janus.cbl.uh.edu> References: <20150217224440.GL13270@janus.cbl.uh.edu> Message-ID: Le 17 f?vr. 2015 ? 14:44, Zakariyya Mughal a ?crit : > Hello, > > I'm working on the IPerl language kernel and I wanted to implement > Perl's warning system. > > In the messaging spec, I can only return the extra fields for error > names, traceback, etc. only if the status in the `execute_reply` message > is 'error' . > > Since warnings do not halt the execution of the program, how should I > approach this? I think the current way in IPython is to have warnings go > to `stderr` rather than have a separate traceback mechanism. I believe that's how we do it yes. And I think other kernels do that as well. I guess if we standardize a spec for traceback, it might make sens to reconsider displaying tracebacks in the middle of execution. But if you already have argument for that now, you can expose them. We will most likely not change the spec now that we are in RC, but we can start thinking of the next changes. -- M From bussonniermatthias at gmail.com Tue Feb 17 17:56:34 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 17 Feb 2015 14:56:34 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: Le 17 f?vr. 2015 ? 14:45, Michael Waskom a ?crit : > Ooop one more thing I've noticed. ctrl-j/k no longer appears to move cells, although that shortcut is still referenced here: http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb (not in the help popup though, so maybe those have been removed, which would make me sad). Yes you are right. The shortcut are conflicting with FF windows, so we removed them. You can add them back in your custom.js though. -- M > On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver wrote: > On 17 February 2015 at 13:43, Max Linke wrote: > Isn't there a guarantee about which functions are available when > custom.js is loaded? > > Currently, as far as I'm aware, no, there isn't. Possibly we should give one, though I think that's too late for 3.0 now. > > I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with: > > IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] > > There's a code snippet to restore Ctrl-J/Ctrl-K here: https://github.com/ipython/ipython/pull/7732#issuecomment-74519970 > > The shortcuts set in cm_config are only for Codemirror, i.e. they act within a single cell. Notebook shortcuts, e.g. for moving cells around, are defined elsewhere. > > > Is it documented somewhere what the recommended way is of enabling > > extensions in the notebook? I can't find anything in the online docs and > > most extensions I find seem to use another way to load it. > > Basically nothing about the JS API is documented yet, and this is kind of deliberate - most of it is still changing pretty fast, and we don't want to give a false impression of stability. > > In IPython 3, there is a way of storing declarative frontend config, including a set of extensions to load, so you don't have to manually edit custom.js to enable them. There is an extension built on top of this to provide a GUI for enabling and disabling extensions: > > https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Feb 17 18:09:13 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 17 Feb 2015 15:09:13 -0800 Subject: [IPython-dev] IPython messaging spec for warnings with traceback In-Reply-To: References: <20150217224440.GL13270@janus.cbl.uh.edu> Message-ID: On 17 February 2015 at 14:55, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > I guess if we standardize a spec for traceback, it might make sens to > reconsider > displaying tracebacks in the middle of execution. But if you already have > argument > for that now, you can expose them. There is an 'error' message for displaying errors, which is separate from the execution_reply. IIRC, the error message determines what the UI actually sees, and the execution_reply may affect the frontend's behaviour (it considers that execution to have failed). If I'm right, sending an 'error' message for a warning and then sending execute_reply with status OK should work correctly. We probably don't need to be sending all the error information twice, but that's another issue. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Wed Feb 18 02:20:10 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 17 Feb 2015 23:20:10 -0800 Subject: [IPython-dev] ITorch on IPython 3 -- problems? In-Reply-To: References: Message-ID: I didn?t play with it too much, but I submitted a couple of PRs to get iTorch working with IPython 3.0 last week. After those, it seemed to be working for me. -MinRK ? On Mon, Feb 16, 2015 at 11:03 PM, Fernando Perez wrote: > On Mon, Feb 16, 2015 at 5:19 PM, Andrew Payne wrote: > >> >> (And if there's an ITorch mailing list, please redirect me. I couldn't >> find one). >> > > maybe start by posting a quick ping as an issue on their github repo? > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.gibiansky at gmail.com Wed Feb 18 02:27:51 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Tue, 17 Feb 2015 23:27:51 -0800 Subject: [IPython-dev] IPython messaging spec for warnings with traceback In-Reply-To: References: <20150217224440.GL13270@janus.cbl.uh.edu> Message-ID: IHaskell currently just publishes a display_data message with the error message, showing it in red for notebook frontends. Is there a downside to this approach over writing to stderr or sending an error message? Should I change this to use a more standard mechanism? -- Andrew On Tue, Feb 17, 2015 at 3:09 PM, Thomas Kluyver wrote: > On 17 February 2015 at 14:55, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> I guess if we standardize a spec for traceback, it might make sens to >> reconsider >> displaying tracebacks in the middle of execution. But if you already have >> argument >> for that now, you can expose them. > > > There is an 'error' message for displaying errors, which is separate from > the execution_reply. IIRC, the error message determines what the UI > actually sees, and the execution_reply may affect the frontend's behaviour > (it considers that execution to have failed). If I'm right, sending an > 'error' message for a warning and then sending execute_reply with status OK > should work correctly. > > We probably don't need to be sending all the error information twice, but > that's another issue. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Wed Feb 18 02:44:44 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 17 Feb 2015 23:44:44 -0800 Subject: [IPython-dev] IPython messaging spec for warnings with traceback In-Reply-To: References: <20150217224440.GL13270@janus.cbl.uh.edu> Message-ID: On Tue, Feb 17, 2015 at 11:27 PM, Andrew Gibiansky < andrew.gibiansky at gmail.com> wrote: > IHaskell currently just publishes a display_data message with the error > message, showing it in red for notebook frontends. Is there a downside to > this approach over writing to stderr or sending an error message? Should I > change this to use a more standard mechanism? > I think that's perfectly sensible. Warnings in Python already go to stderr, so IPython doesn't do anything to handle warnings at all. A display_data message is just fine, too. -MinRK > > -- Andrew > > On Tue, Feb 17, 2015 at 3:09 PM, Thomas Kluyver wrote: > >> On 17 February 2015 at 14:55, Matthias Bussonnier < >> bussonniermatthias at gmail.com> wrote: >> >>> I guess if we standardize a spec for traceback, it might make sens to >>> reconsider >>> displaying tracebacks in the middle of execution. But if you already >>> have argument >>> for that now, you can expose them. >> >> >> There is an 'error' message for displaying errors, which is separate from >> the execution_reply. IIRC, the error message determines what the UI >> actually sees, and the execution_reply may affect the frontend's behaviour >> (it considers that execution to have failed). If I'm right, sending an >> 'error' message for a warning and then sending execute_reply with status OK >> should work correctly. >> >> We probably don't need to be sending all the error information twice, but >> that's another issue. >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ra092767 at ime.unicamp.br Wed Feb 18 21:49:35 2015 From: ra092767 at ime.unicamp.br (Raniere Silva) Date: Thu, 19 Feb 2015 00:49:35 -0200 Subject: [IPython-dev] Google Summer of Code and NumFOCUS Message-ID: <20150219024934.GC11191@pupunha> Hi, NumFOCUS has promotes and supports the ongoing research and development of open-source computing tools including IPython. This year NumFOCUS want to try be a Google Summer of Code "umbrella" mentoring organization, Umbrella organizations are mentoring organizations accepted into the Google Summer of Code program that have other open source organizations working "under" them. Sometime organizations that work very closely or have very similar goals or communities may get put together under an "umbrella." Google stills expects all organizations under the umbrella, whether accepted into the program under their title or not, to adhere to all the rules and regulations of the program. From https://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2015/help_page#umbrella_organization To help promote and support IPython. We encourage IPython to apply to Google Summer of Code under your own title and will be very happy if you can also do with us. If you are interested, please check https://github.com/swcarpentry/gsoc2015 and https://github.com/swcarpentry/gsoc2015/blob/master/CONTRIBUTING.md. If you have any question, please email me directly. Thanks in advance, Raniere -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From fperez.net at gmail.com Wed Feb 18 21:45:23 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 18 Feb 2015 18:45:23 -0800 Subject: [IPython-dev] Google Summer of Code and NumFOCUS In-Reply-To: <20150219024934.GC11191@pupunha> References: <20150219024934.GC11191@pupunha> Message-ID: Hi Rainiere, right now we don't have the necessary bandwidth, nor the kind of appropirate GSoC project breakdown, to successfully meet the responsibilities of a good GSoC mentor. Therefore IPython will not be applying this year for GSoC participation. Thanks! f On Wed, Feb 18, 2015 at 6:49 PM, Raniere Silva wrote: > Hi, > > NumFOCUS has promotes and supports the ongoing research and development of > open-source computing tools including IPython. > > This year NumFOCUS want to try be a Google Summer of Code > "umbrella" mentoring organization, > > Umbrella organizations are mentoring organizations accepted into the > Google > Summer of Code program that have other open source organizations > working > "under" them. Sometime organizations that work very closely or have > very > similar goals or communities may get put together under an "umbrella." > Google stills expects all organizations under the umbrella, whether > accepted > into the program under their title or not, to adhere to all the rules > and > regulations of the program. > > From > https://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2015/help_page#umbrella_organization > > To help promote and support IPython. > > We encourage IPython to apply to Google Summer of Code under your own title > and will be very happy if you can also do with us. > If you are interested, please check > https://github.com/swcarpentry/gsoc2015 > and https://github.com/swcarpentry/gsoc2015/blob/master/CONTRIBUTING.md. > > If you have any question, please email me directly. > > Thanks in advance, > Raniere > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwaskom at stanford.edu Thu Feb 19 11:35:59 2015 From: mwaskom at stanford.edu (Michael Waskom) Date: Thu, 19 Feb 2015 08:35:59 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: Hi, sorry to be a nuisance, but I'm worried this part of my second email may have been overlooked, and it's been bugging me a lot as I've been working with the release candidate: One other thing I have noticed is that, when shift-TABing to get the function docstring popover in the notebook, the help seems often bound to objects that have been added as arguments, and not to the function itself., i.e. func(a, b, [shift-TAB] will show me the docstring for the object that `b` points at, although this seems to only happen when an variable is being used. In other words, func(a, "b", [shift-TAB] will show me the docstring for `a`. Previously this would happen when using a function within the call, ie.e. func1(a, func2(b), [shift=TAB] would should me the docs for `func2` (even if I had closed parens on it). But the behavior has changed somewhat. On Tue, Feb 17, 2015 at 2:56 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 17 f?vr. 2015 ? 14:45, Michael Waskom a ?crit : > > Ooop one more thing I've noticed. ctrl-j/k no longer appears to move > cells, although that shortcut is still referenced here: > http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb > (not in the help popup though, so maybe those have been removed, which > would make me sad). > > > Yes you are right. The shortcut are conflicting with FF windows, so we > removed them. > You can add them back in your custom.js though. > -- > M > > > On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver wrote: > >> On 17 February 2015 at 13:43, Max Linke wrote: >> >>> Isn't there a guarantee about which functions are available when >>> custom.js is loaded? >>> >> >> Currently, as far as I'm aware, no, there isn't. Possibly we should give >> one, though I think that's too late for 3.0 now. >> >> >>> I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with: >>> >>> IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] >>> >> >> There's a code snippet to restore Ctrl-J/Ctrl-K here: >> https://github.com/ipython/ipython/pull/7732#issuecomment-74519970 >> >> The shortcuts set in cm_config are only for Codemirror, i.e. they act >> within a single cell. Notebook shortcuts, e.g. for moving cells around, are >> defined elsewhere. >> >> > Is it documented somewhere what the recommended way is of enabling >> > extensions in the notebook? I can't find anything in the online docs and >> > most extensions I find seem to use another way to load it. >> >> Basically nothing about the JS API is documented yet, and this is kind of >> deliberate - most of it is still changing pretty fast, and we don't want to >> give a false impression of stability. >> >> In IPython 3, there is a way of storing declarative frontend config, >> including a set of extensions to load, so you don't have to manually edit >> custom.js to enable them. There is an extension built on top of this to >> provide a GUI for enabling and disabling extensions: >> >> >> https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cyrille.rossant at gmail.com Thu Feb 19 11:57:24 2015 From: cyrille.rossant at gmail.com (Cyrille Rossant) Date: Thu, 19 Feb 2015 17:57:24 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: 2015-02-19 17:35 GMT+01:00 Michael Waskom : > Hi, sorry to be a nuisance, but I'm worried this part of my second email may > have been overlooked, and it's been bugging me a lot as I've been working > with the release candidate: I second that > One other thing I have noticed is that, when shift-TABing to get the > function docstring popover in the notebook, the help seems often bound to > objects that have been added as arguments, and not to the function itself., > i.e. > > func(a, b, [shift-TAB] > > will show me the docstring for the object that `b` points at, although this > seems to only happen when an variable is being used. In other words, > > func(a, "b", [shift-TAB] > > will show me the docstring for `a`. > > Previously this would happen when using a function within the call, ie.e. > > func1(a, func2(b), [shift=TAB] > > would should me the docs for `func2` (even if I had closed parens on it). > But the behavior has changed somewhat. From takowl at gmail.com Thu Feb 19 12:54:44 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 19 Feb 2015 09:54:44 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: Sorry, I did see that part of the message before, but I neglected to respond. On 19 February 2015 at 08:35, Michael Waskom wrote: > One other thing I have noticed is that, when shift-TABing to get the > function docstring popover in the notebook, the help seems often bound to > objects that have been added as arguments, and not to the function > itself., i.e. > > func(a, b, [shift-TAB] > > will show me the docstring for the object that `b` points at > I think previously there was a regex in the JS that looked backwards for something like "name(". As part of the work to make the frontend more language agnostic, this was dropped - it now sends the current cell and the cursor position to the kernel and expects that to work out what it should provide information about. The upside of this is that it's possible to do smarter things, like tokenising the code, so in your example: > func1(a, func2(b), [shift-TAB] it would be able to provide information on func1 rather than func2. The downside is that we haven't implemented anything smart in the kernel yet, so it currently just gets the last name before or at the cursor. We don't want to start messing around with this code for 3.0 now, but for 3.1 we should aim to make it at least as smart as the JS was in IPython 2.x. I'll open an issue for it. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Thu Feb 19 14:27:30 2015 From: john at omernik.com (John Omernik) Date: Thu, 19 Feb 2015 13:27:30 -0600 Subject: [IPython-dev] Hide input Message-ID: So I see this has been discussed before (Git Hub Closed issue 1340) But I am confused at the decision process behind saying iPython will not have the ability to hide or collapse input cells, but it will be in NBConvert... I can think of a number of cases where a collapse input would invaluable to intuitive data manipulation. Say you have a text Json blob... you can assign to a variable in Python, and then collapse down the input to just the top line , and proceed to do data manipulation without having to scroll through pages of Json text. It makes the analysis (not just the reading of the NBConverted notebook) easier . Can we rethink this decision to add the ability to hide input? From bussonniermatthias at gmail.com Thu Feb 19 14:38:45 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 19 Feb 2015 11:38:45 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: Le 19 f?vr. 2015 ? 09:54, Thomas Kluyver a ?crit : > > I think previously there was a regex in the JS that looked backwards for something like "name(". As part of the work to make the frontend more language agnostic, this was dropped - it now sends the current cell and the cursor position to the kernel and expects that to work out what it should provide information about. Indeed,and having a space after the comma, or not was returning different results. > The upside of this is that it's possible to do smarter things, like tokenising the code, so in your example: > > > func1(a, func2(b), [shift-TAB] > > it would be able to provide information on func1 rather than func2. > > The downside is that we haven't implemented anything smart in the kernel yet, so it currently just gets the last name before or at the cursor. You can also select and shift-tab, it should give info only on selection. > > We don't want to start messing around with this code for 3.0 now, but for 3.1 we should aim to make it at least as smart as the JS was in IPython 2.x. I'll open an issue for it. It was not technically "smart", and we don't use the new message spec at all, so I doubt this will be a simple "fix". -- M > Thomas > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From benjaminrk at gmail.com Thu Feb 19 15:13:21 2015 From: benjaminrk at gmail.com (MinRK) Date: Thu, 19 Feb 2015 21:13:21 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: On Thu, Feb 19, 2015 at 8:38 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 19 f?vr. 2015 ? 09:54, Thomas Kluyver a ?crit : > > > > > I think previously there was a regex in the JS that looked backwards for > something like "name(". As part of the work to make the frontend more > language agnostic, this was dropped - it now sends the current cell and the > cursor position to the kernel and expects that to work out what it should > provide information about. > > Indeed,and having a space after the comma, or not was returning different > results. > > > > The upside of this is that it's possible to do smarter things, like > tokenising the code, so in your example: > > > > > func1(a, func2(b), [shift-TAB] > > > > it would be able to provide information on func1 rather than func2. > > > > The downside is that we haven't implemented anything smart in the kernel > yet, so it currently just gets the last name before or at the cursor. > > You can also select and shift-tab, it should give info only on selection. > > > > > We don't want to start messing around with this code for 3.0 now, but > for 3.1 we should aim to make it at least as smart as the JS was in IPython > 2.x. I'll open an issue for it. > > It was not technically "smart", and we don't use the new message spec at > all, > so I doubt this will be a simple "fix". > I don't know what you mean by "we don't use the new message spec", but the tokenization is done entirely on the Python side with the new message spec that we use in 3.0. Right now, the IPython kernel picks the nearest token to the cursor, but we could certainly change this to pick the most recent token before an open-paren if there is one. We just need to make a decision about what token should be inspected for a given context. I think that's a relatively challenging problem, since it's guessing user intent, but implementation shouldn't be the biggest challenge. > > -- > M > > > > Thomas > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Thu Feb 19 15:17:55 2015 From: benjaminrk at gmail.com (MinRK) Date: Thu, 19 Feb 2015 21:17:55 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: On Thu, Feb 19, 2015 at 9:13 PM, MinRK wrote: > > On Thu, Feb 19, 2015 at 8:38 PM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> >> Le 19 f?vr. 2015 ? 09:54, Thomas Kluyver a ?crit : >> >> > >> > I think previously there was a regex in the JS that looked backwards >> for something like "name(". As part of the work to make the frontend more >> language agnostic, this was dropped - it now sends the current cell and the >> cursor position to the kernel and expects that to work out what it should >> provide information about. >> >> Indeed,and having a space after the comma, or not was returning different >> results. >> >> >> > The upside of this is that it's possible to do smarter things, like >> tokenising the code, so in your example: >> > >> > > func1(a, func2(b), [shift-TAB] >> > >> > it would be able to provide information on func1 rather than func2. >> > >> > The downside is that we haven't implemented anything smart in the >> kernel yet, so it currently just gets the last name before or at the cursor. >> >> You can also select and shift-tab, it should give info only on selection. >> >> > >> > We don't want to start messing around with this code for 3.0 now, but >> for 3.1 we should aim to make it at least as smart as the JS was in IPython >> 2.x. I'll open an issue for it. >> >> It was not technically "smart", and we don't use the new message spec at >> all, >> so I doubt this will be a simple "fix". >> > > I don't know what you mean by "we don't use the new message spec", but the > tokenization is done entirely on the Python side with the new message spec > that we use in 3.0. Right now, the IPython kernel picks the nearest token > to the cursor, but we could certainly change this to pick the most recent > token before an open-paren if there is one. We just need to make a decision > about what token should be inspected for a given context. I think that's a > relatively challenging problem, since it's guessing user intent, but > implementation shouldn't be the biggest challenge. > For example, here?s one implementation . -MinRK > >> >> -- >> M >> >> >> > Thomas >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Feb 19 17:23:05 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 19 Feb 2015 14:23:05 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: <6633F332-453F-4C19-8C5F-E545436A06AE@gmail.com> Le 19 f?vr. 2015 ? 12:13, MinRK a ?crit : > > > On Thu, Feb 19, 2015 at 8:38 PM, Matthias Bussonnier wrote: > > Le 19 f?vr. 2015 ? 09:54, Thomas Kluyver a ?crit : > > > > > I think previously there was a regex in the JS that looked backwards for something like "name(". As part of the work to make the frontend more language agnostic, this was dropped - it now sends the current cell and the cursor position to the kernel and expects that to work out what it should provide information about. > > Indeed,and having a space after the comma, or not was returning different results. > > > > The upside of this is that it's possible to do smarter things, like tokenising the code, so in your example: > > > > > func1(a, func2(b), [shift-TAB] > > > > it would be able to provide information on func1 rather than func2. > > > > The downside is that we haven't implemented anything smart in the kernel yet, so it currently just gets the last name before or at the cursor. > > You can also select and shift-tab, it should give info only on selection. > > > > > We don't want to start messing around with this code for 3.0 now, but for 3.1 we should aim to make it at least as smart as the JS was in IPython 2.x. I'll open an issue for it. > > It was not technically "smart", and we don't use the new message spec at all, > so I doubt this will be a simple "fix". > > I don't know what you mean by "we don't use the new message spec", Sorry ment we don't do smart completion on the full text of the cell. > but the tokenization is done entirely on the Python side with the new message spec that we use in 3.0. Right now, the IPython kernel picks the nearest token to the cursor, but we could certainly change this to pick the most recent token before an open-paren if there is one. We just need to make a decision about what token should be inspected for a given context. I think that's a relatively challenging problem, since it's guessing user intent, but implementation shouldn't be the biggest challenge. That means that custom completer do not get access to the full cell right ? > > > -- > M > > > > Thomas > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Fri Feb 20 08:56:45 2015 From: benjaminrk at gmail.com (Min RK) Date: Fri, 20 Feb 2015 14:56:45 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: <6633F332-453F-4C19-8C5F-E545436A06AE@gmail.com> References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> <6633F332-453F-4C19-8C5F-E545436A06AE@gmail.com> Message-ID: > On Feb 19, 2015, at 23:23, Matthias Bussonnier wrote: > > >> Le 19 f?vr. 2015 ? 12:13, MinRK a ?crit : >> >> >> >>> On Thu, Feb 19, 2015 at 8:38 PM, Matthias Bussonnier wrote: >>> >>> Le 19 f?vr. 2015 ? 09:54, Thomas Kluyver a ?crit : >>> >>> > >>> > I think previously there was a regex in the JS that looked backwards for something like "name(". As part of the work to make the frontend more language agnostic, this was dropped - it now sends the current cell and the cursor position to the kernel and expects that to work out what it should provide information about. >>> >>> Indeed,and having a space after the comma, or not was returning different results. >>> >>> >>> > The upside of this is that it's possible to do smarter things, like tokenising the code, so in your example: >>> > >>> > > func1(a, func2(b), [shift-TAB] >>> > >>> > it would be able to provide information on func1 rather than func2. >>> > >>> > The downside is that we haven't implemented anything smart in the kernel yet, so it currently just gets the last name before or at the cursor. >>> >>> You can also select and shift-tab, it should give info only on selection. >>> >>> > >>> > We don't want to start messing around with this code for 3.0 now, but for 3.1 we should aim to make it at least as smart as the JS was in IPython 2.x. I'll open an issue for it. >>> >>> It was not technically "smart", and we don't use the new message spec at all, >>> so I doubt this will be a simple "fix". >> >> I don't know what you mean by "we don't use the new message spec", > > Sorry ment we don't do smart completion on the full text of the cell. > >> but the tokenization is done entirely on the Python side with the new message spec that we use in 3.0. Right now, the IPython kernel picks the nearest token to the cursor, but we could certainly change this to pick the most recent token before an open-paren if there is one. We just need to make a decision about what token should be inspected for a given context. I think that's a relatively challenging problem, since it's guessing user intent, but implementation shouldn't be the biggest challenge. > > That means that custom completer do not get access to the full cell right ? Not at all. Finding the token for introspection (tooltip) and completion are completely separate processes. Both should get the complete cell. Because of how IPython's completion machinery works now, I believe we only pass the completer the current line, but I think we can fix whatever it was that prevented the completer from working when you pass it multiline content. > > > >> >>> >>> -- >>> M >>> >>> >>> > Thomas >>> > _______________________________________________ >>> > IPython-dev mailing list >>> > IPython-dev at scipy.org >>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmhobson at gmail.com Fri Feb 20 12:42:04 2015 From: pmhobson at gmail.com (Paul Hobson) Date: Fri, 20 Feb 2015 09:42:04 -0800 Subject: [IPython-dev] Hide input In-Reply-To: References: Message-ID: I can't speak for the devs here, but I recall them saying that they don't want anyone being able to hide malicious code in a hidden cell. For your problem, would simply loading the JSON from a file be an option? -p On Thu, Feb 19, 2015 at 11:27 AM, John Omernik wrote: > So I see this has been discussed before (Git Hub Closed issue 1340) > But I am confused at the decision process behind saying iPython will > not have the ability to hide or collapse input cells, but it will be > in NBConvert... > > > I can think of a number of cases where a collapse input would > invaluable to intuitive data manipulation. Say you have a text Json > blob... you can assign to a variable in Python, and then collapse down > the input to just the top line , and proceed to do data manipulation > without having to scroll through pages of Json text. It makes the > analysis (not just the reading of the NBConverted notebook) easier . > > Can we rethink this decision to add the ability to hide input? > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ra092767 at ime.unicamp.br Fri Feb 20 15:33:09 2015 From: ra092767 at ime.unicamp.br (Raniere Silva) Date: Fri, 20 Feb 2015 18:33:09 -0200 Subject: [IPython-dev] =?utf-8?q?ANN=3A_SciPy_Latin_Am=C3=A9rica_2015_-_Ca?= =?utf-8?q?ll_for_Proposals?= Message-ID: <20150220203309.GN12853@pupunha> *Call for Proposals* *SciPy Latin Am?rica 2015*, the third annual Scientific Computing with Python Conference, will be held this *May 20-22* in *Posadas, Misiones, Argentina*. SciPy is a community dedicated to the advancement of scientific computing through open source Python software for mathematics, science, and engineering. The annual SciPy Conferences allows participants from academic, commercial, and governmental organizations to showcase their latest projects, learn from skilled users and developers, and collaborate on code development. *Proposals are now being accepted for SciPy Latin Am?rica 2015*. Presentation content can be at a novice, intermediate or advanced level. Talks will run 30-40 min and hands-on tutorials will run 100-120 min. We also receive proposal for posters. For more information about the different types of proposal, see below the "*Different types of Communication*" section. *How to Submit?* 1. Register for an account on http://conf.scipyla.org/user/register 2. Submit your proposal at http://conf.scipyla.org/activity/propose *Important Dates* - *April 6th*: Talks, poster, tutorial submission deadline. - *April 20th*: Notification Talks / Posters / Tutorial accepted. - *May 20th-22nd*: SciPy Latin Am?rica 2015. *Different types of Communication* *Talks*: These are the traditional talk sessions given during the main conference days. They're mostly 30 minutes long with 5 min for questions. If you think you have a topic but aren't sure how to propose it, contact our program committee and we'll work with you. We'd love to help you come up with a great proposal. *Tutorials*: We are looking for tutorials that can grow this community at any level. We aim for tutorials that will advance Scientific Python, advance this community, and shape the future. They're are 100-120 minutes long, but if you think you need more than one slot, you can split the content and submit two self-contained proposals. *Posters*: The poster session provides a more interactive, attendee-driven presentation than the speaker-driven conference talks. Poster presentations have fostered extensive discussions on the topics, with many that have gone on much longer than the actual "session" called for. The idea is to present your topic on poster board and as attendees mingle through the rows, they find your topic, read through what you've written, then strike up a discussion on it. It's as simple as that. You could be doing Q&A in the first minute of the session with a group of 10 people. *Lightning Talks*: Want to give a talk, but do not have enough material for a full talk? These talks are, at max, 5 minute talks done in quick succession in the main hall. No need to fill the whole slot, though! -- *The SciPy LA 2015 Program **Committee* -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From max_linke at gmx.de Fri Feb 20 16:00:57 2015 From: max_linke at gmx.de (Max Linke) Date: Fri, 20 Feb 2015 22:00:57 +0100 Subject: [IPython-dev] Hide input In-Reply-To: References: Message-ID: <54E7A089.1090007@gmx.de> You can use the codefolding extension to hide complete cells. If the top line of a cell is a comment the whole cell can be folded away. I personally use this as a title for plots. It hides all the plotting commands quite nicely. https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/Codefolding best Max On 02/20/2015 06:42 PM, Paul Hobson wrote: > I can't speak for the devs here, but I recall them saying that they don't > want anyone being able to hide malicious code in a hidden cell. > > For your problem, would simply loading the JSON from a file be an option? > -p > > On Thu, Feb 19, 2015 at 11:27 AM, John Omernik wrote: > >> So I see this has been discussed before (Git Hub Closed issue 1340) >> But I am confused at the decision process behind saying iPython will >> not have the ability to hide or collapse input cells, but it will be >> in NBConvert... >> >> >> I can think of a number of cases where a collapse input would >> invaluable to intuitive data manipulation. Say you have a text Json >> blob... you can assign to a variable in Python, and then collapse down >> the input to just the top line , and proceed to do data manipulation >> without having to scroll through pages of Json text. It makes the >> analysis (not just the reading of the NBConverted notebook) easier . >> >> Can we rethink this decision to add the ability to hide input? >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From max_linke at gmx.de Sat Feb 21 05:09:50 2015 From: max_linke at gmx.de (Max Linke) Date: Sat, 21 Feb 2015 11:09:50 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> Message-ID: <54E8596E.5040501@gmx.de> I actually have a problem seeing the docstring and definition right now. By default S-Tab only shows the type, string, and file information. (see attached screenshots) To get to the for me useful key "definition" I have to press the small plus key. This is really annoying for me because I used S-Tab before to look up the arguments needed for a function. Is there a way to define which keywords are shown when I press S-TAB? best Max On 02/19/2015 05:35 PM, Michael Waskom wrote: > Hi, sorry to be a nuisance, but I'm worried this part of my second email > may have been overlooked, and it's been bugging me a lot as I've been > working with the release candidate: > > One other thing I have noticed is that, when shift-TABing to get the > function docstring popover in the notebook, the help seems often bound to > objects that have been added as arguments, and not to the function > itself., i.e. > > func(a, b, [shift-TAB] > > will show me the docstring for the object that `b` points at, although this > seems to only happen when an variable is being used. In other words, > > func(a, "b", [shift-TAB] > > will show me the docstring for `a`. > > Previously this would happen when using a function within the call, ie.e. > > func1(a, func2(b), [shift=TAB] > > would should me the docs for `func2` (even if I had closed parens on it). > But the behavior has changed somewhat. > > On Tue, Feb 17, 2015 at 2:56 PM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> >> Le 17 f?vr. 2015 ? 14:45, Michael Waskom a ?crit : >> >> Ooop one more thing I've noticed. ctrl-j/k no longer appears to move >> cells, although that shortcut is still referenced here: >> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb >> (not in the help popup though, so maybe those have been removed, which >> would make me sad). >> >> >> Yes you are right. The shortcut are conflicting with FF windows, so we >> removed them. >> You can add them back in your custom.js though. >> -- >> M >> >> >> On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver wrote: >> >>> On 17 February 2015 at 13:43, Max Linke wrote: >>> >>>> Isn't there a guarantee about which functions are available when >>>> custom.js is loaded? >>>> >>> >>> Currently, as far as I'm aware, no, there isn't. Possibly we should give >>> one, though I think that's too late for 3.0 now. >>> >>> >>>> I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with: >>>> >>>> IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] >>>> >>> >>> There's a code snippet to restore Ctrl-J/Ctrl-K here: >>> https://github.com/ipython/ipython/pull/7732#issuecomment-74519970 >>> >>> The shortcuts set in cm_config are only for Codemirror, i.e. they act >>> within a single cell. Notebook shortcuts, e.g. for moving cells around, are >>> defined elsewhere. >>> >>>> Is it documented somewhere what the recommended way is of enabling >>>> extensions in the notebook? I can't find anything in the online docs and >>>> most extensions I find seem to use another way to load it. >>> >>> Basically nothing about the JS API is documented yet, and this is kind of >>> deliberate - most of it is still changing pretty fast, and we don't want to >>> give a false impression of stability. >>> >>> In IPython 3, there is a way of storing declarative frontend config, >>> including a set of extensions to load, so you don't have to manually edit >>> custom.js to enable them. There is an extension built on top of this to >>> provide a GUI for enabling and disabling extensions: >>> >>> >>> https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension >>> >>> Thomas >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2015-02-21 11:02:24.png Type: image/png Size: 26909 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2015-02-21 11:01:41.png Type: image/png Size: 52775 bytes Desc: not available URL: From john at omernik.com Sat Feb 21 12:04:54 2015 From: john at omernik.com (John Omernik) Date: Sat, 21 Feb 2015 11:04:54 -0600 Subject: [IPython-dev] Jupyter and Other Kernels Message-ID: Since the Kernels that are developed for Jupyter look to be different projects, I am guessing that my question is ok to ask here, but understand if the response is "not an iPython or Jupyter" question. I am playing with the iRKernel. https://github.com/takluyver/IRkernel and have a few questions on how kernels in general interact with Jupyter (not just IRKernel) 1. Magics: Based on what I am seeing in the iRKernel, Magics appear to be a "per Kernel" thing rather than a Jupyter thing. Is this correct? In the iRKernel %lsmagic gets me Error in parse(text = x, srcfile = src): :1:1: unexpected input 1: %lsmagic So anythoughts on how to implement magics in other kernels if this is not case? Am I missing something basic here? 2. So I have a some stuff running in iPython through my profile_default startup directory. How do duplicate this so when an R Kernel starts up, I can have certain imports run all the time etc. Is that a kernel specific thing as well? Thanks1 From bussonniermatthias at gmail.com Sat Feb 21 13:26:06 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Sat, 21 Feb 2015 10:26:06 -0800 Subject: [IPython-dev] Jupyter and Other Kernels In-Reply-To: References: Message-ID: <83D3812F-583D-4524-BB81-D87D95AC90FF@gmail.com> Le 21 f?vr. 2015 ? 09:04, John Omernik a ?crit : > Since the Kernels that are developed for Jupyter look to be different > projects, I am guessing that my question is ok to ask here, but > understand if the response is "not an iPython or Jupyter" question. The question looks fine here. > > I am playing with the iRKernel. https://github.com/takluyver/IRkernel > and have a few questions on how kernels in general interact with > Jupyter (not just IRKernel) > > > 1. Magics: Based on what I am seeing in the iRKernel, Magics appear to > be a "per Kernel" thing rather than a Jupyter thing. Is this correct? > In the iRKernel %lsmagic gets me Yes, they are per-kernel. If you write a python-base one, looks at Doug Blank Metakernel that add some facilities to write magics. > > Error in parse(text = x, srcfile = src): :1:1: unexpected input > 1: %lsmagic As magic are per-kernel, the kernel is responsible to parse them. %lsmagic could be a perfect valid syntax in (perl | php | OCaml | ....) because it is **not** valid syntax in Python, wa can make them magic in IPython. > > So anythoughts on how to implement magics in other kernels if this is > not case? Am I missing something basic here? Depends on your language. Julia decided they did not need magics. For example shell access in julia is with `;` but it's a property of the language. Julia have strings macro, so that can do: matlab""" (some matlab code) """ Ruby have the same. Advice: Pick a syntax that is not valid R. and pre-parse to make it valid R. which is what IPtyhon does. > > 2. So I have a some stuff running in iPython through my > profile_default startup directory. How do duplicate this so when an R > Kernel starts up, I can have certain imports run all the time etc. Is > that a kernel specific thing as well? That depends on your kernel. The kernel do whatever it likes. If it want to copy us and run the .r files in .ipython/startup, I suppose that would be fine. If we wan another common way of doing things, we can do a working group. But obviously, .py fies are not the right way to configure a R process. -- M > Thanks1 > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From andy at payne.org Sat Feb 21 13:35:37 2015 From: andy at payne.org (Andrew Payne) Date: Sat, 21 Feb 2015 13:35:37 -0500 Subject: [IPython-dev] ITorch on IPython 3 -- problems? In-Reply-To: References: Message-ID: On getting iTorch working with IPython 3.0: > I didn?t play with it too much, but I submitted a couple of PRs > to > get iTorch working with IPython 3.0 last week. After those, it seemed to be > working for me. > I've dug into this more deeply and now I'm wondering how you got it working. The iTorch kernel uses kernel messaging v4 (properly reported after your PR). It uses 'pyout' messages to send stdout. When sending the messages, iTorch copies the header from the received message, including whatever 'version' field is in there. See: https://github.com/facebook/iTorch/blob/master/IOHandler.lua#L73 IPython 3 seems to send execute_request messages with it's current version setting, 5.0. This causes iTorch to reply with a 'pyout' message tagged as version 5.0. Which in turn, causes IPython to skip adapting the message to v5 (since it already thinks it's v5, in kernel/adapter.py). And since 'pyout' is not in v5, it dropped the message on the floor. (I've opened a PR to fix this in iTorch by always setting the version to 4.0, see: https://github.com/facebook/iTorch/pull/28) However, it raises questions: - Should IPython be sending v5 messages to a kernel that advertises v4? - Should the kernel messaging code be more verbose (log.warn, or something) when it gets a message type it doesn't understand? -andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at omernik.com Sat Feb 21 13:40:47 2015 From: john at omernik.com (John Omernik) Date: Sat, 21 Feb 2015 12:40:47 -0600 Subject: [IPython-dev] Jupyter and Other Kernels In-Reply-To: <83D3812F-583D-4524-BB81-D87D95AC90FF@gmail.com> References: <83D3812F-583D-4524-BB81-D87D95AC90FF@gmail.com> Message-ID: Thanks for the info on the magics. I'll think that one through. Both of these issues are interesting in that Kernel devs can be totally independent of Jupyter in style (yes they have to follow the API) but stylistically, they don't and thus there is not going to be easy movement from one kernel to another for users... Not a terrible thing and maybe that's fine for most users, but hmm... lots to think about here. Thanks! On Sat, Feb 21, 2015 at 12:26 PM, Matthias Bussonnier wrote: > > Le 21 f?vr. 2015 ? 09:04, John Omernik a ?crit : > >> Since the Kernels that are developed for Jupyter look to be different >> projects, I am guessing that my question is ok to ask here, but >> understand if the response is "not an iPython or Jupyter" question. > > The question looks fine here. > >> >> I am playing with the iRKernel. https://github.com/takluyver/IRkernel >> and have a few questions on how kernels in general interact with >> Jupyter (not just IRKernel) >> >> >> 1. Magics: Based on what I am seeing in the iRKernel, Magics appear to >> be a "per Kernel" thing rather than a Jupyter thing. Is this correct? >> In the iRKernel %lsmagic gets me > > Yes, they are per-kernel. > If you write a python-base one, looks at Doug Blank Metakernel > that add some facilities to write magics. > >> >> Error in parse(text = x, srcfile = src): :1:1: unexpected input >> 1: %lsmagic > > As magic are per-kernel, the kernel is responsible to parse them. > %lsmagic could be a perfect valid syntax in (perl | php | OCaml | ....) > because it is **not** valid syntax in Python, wa can make them magic in > IPython. > >> >> So anythoughts on how to implement magics in other kernels if this is >> not case? Am I missing something basic here? > > Depends on your language. > Julia decided they did not need magics. > For example shell access in julia is with `;` > but it's a property of the language. > > Julia have strings macro, so that can do: > matlab""" > (some matlab code) > """ > > Ruby have the same. > > Advice: > Pick a syntax that is not valid R. and pre-parse to make it valid R. > which is what IPtyhon does. > >> >> 2. So I have a some stuff running in iPython through my >> profile_default startup directory. How do duplicate this so when an R >> Kernel starts up, I can have certain imports run all the time etc. Is >> that a kernel specific thing as well? > > That depends on your kernel. > The kernel do whatever it likes. > If it want to copy us and run the .r files in .ipython/startup, I suppose that would be fine. > > If we wan another common way of doing things, we can do a working group. > But obviously, .py fies are not the right way to configure a R process. > > -- > M > > >> Thanks1 >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From takowl at gmail.com Sat Feb 21 13:55:48 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 21 Feb 2015 10:55:48 -0800 Subject: [IPython-dev] Jupyter and Other Kernels In-Reply-To: References: <83D3812F-583D-4524-BB81-D87D95AC90FF@gmail.com> Message-ID: I just wanted to chime in and say that I would be ok with having a notion of startup files in the R kernel, but I have no plans to support magics, even if someone submits a PR. The code in IPython to parse and transform magics to valid Python is substantial and tricky to get right, and I don't want to be stuck supporting similar machinery in R. I also think there's less need for magics in the notebook. They're a great interactive convenience in the terminal, but when writing a notebook I prefer to write regular code, even if it's a bit longer. Thomas On 21 Feb 2015 10:41, "John Omernik" wrote: > Thanks for the info on the magics. I'll think that one through. Both > of these issues are interesting in that Kernel devs can be totally > independent of Jupyter in style (yes they have to follow the API) but > stylistically, they don't and thus there is not going to be easy > movement from one kernel to another for users... Not a terrible thing > and maybe that's fine for most users, but hmm... lots to think about > here. > > Thanks! > > On Sat, Feb 21, 2015 at 12:26 PM, Matthias Bussonnier > wrote: > > > > Le 21 f?vr. 2015 ? 09:04, John Omernik a ?crit : > > > >> Since the Kernels that are developed for Jupyter look to be different > >> projects, I am guessing that my question is ok to ask here, but > >> understand if the response is "not an iPython or Jupyter" question. > > > > The question looks fine here. > > > >> > >> I am playing with the iRKernel. https://github.com/takluyver/IRkernel > >> and have a few questions on how kernels in general interact with > >> Jupyter (not just IRKernel) > >> > >> > >> 1. Magics: Based on what I am seeing in the iRKernel, Magics appear to > >> be a "per Kernel" thing rather than a Jupyter thing. Is this correct? > >> In the iRKernel %lsmagic gets me > > > > Yes, they are per-kernel. > > If you write a python-base one, looks at Doug Blank Metakernel > > that add some facilities to write magics. > > > >> > >> Error in parse(text = x, srcfile = src): :1:1: unexpected input > >> 1: %lsmagic > > > > As magic are per-kernel, the kernel is responsible to parse them. > > %lsmagic could be a perfect valid syntax in (perl | php | OCaml | ....) > > because it is **not** valid syntax in Python, wa can make them magic in > > IPython. > > > >> > >> So anythoughts on how to implement magics in other kernels if this is > >> not case? Am I missing something basic here? > > > > Depends on your language. > > Julia decided they did not need magics. > > For example shell access in julia is with `;` > > but it's a property of the language. > > > > Julia have strings macro, so that can do: > > matlab""" > > (some matlab code) > > """ > > > > Ruby have the same. > > > > Advice: > > Pick a syntax that is not valid R. and pre-parse to make it valid R. > > which is what IPtyhon does. > > > >> > >> 2. So I have a some stuff running in iPython through my > >> profile_default startup directory. How do duplicate this so when an R > >> Kernel starts up, I can have certain imports run all the time etc. Is > >> that a kernel specific thing as well? > > > > That depends on your kernel. > > The kernel do whatever it likes. > > If it want to copy us and run the .r files in .ipython/startup, I > suppose that would be fine. > > > > If we wan another common way of doing things, we can do a working group. > > But obviously, .py fies are not the right way to configure a R process. > > > > -- > > M > > > > > >> Thanks1 > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Sat Feb 21 13:57:08 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Sat, 21 Feb 2015 10:57:08 -0800 Subject: [IPython-dev] Jupyter and Other Kernels In-Reply-To: References: <83D3812F-583D-4524-BB81-D87D95AC90FF@gmail.com> Message-ID: Le 21 f?vr. 2015 ? 10:40, John Omernik a ?crit : > Thanks for the info on the magics. I'll think that one through. Both > of these issues are interesting in that Kernel devs can be totally > independent of Jupyter in style (yes they have to follow the API) but > stylistically, they don't and thus there is not going to be easy > movement from one kernel to another for users... Like many things, it would be nice to have a common place to have configuration, and we would be happy to have people from other languages comme into Jupyter steering comity and decide that it would be a topic to tackle. But it is not something we can enforce, or even want to try to tackle, as we are mostly python programmer, and we are not completely aware of the need of other languages. Let say we create a common place for configuration, then people using many kernels will feel at home. Though, people coming from other IDE, or programming environment would be lost. What if I suddenly tell you that if you use in browser ipython terminal your .bashrc is not read anymore and that you have to use /usr/local/jupyter/profile_xxx/terminal/.bashrc ? Would you be happy ? Would we be happy to get 30+ bug report per month of people not reading the docs ? I'll take the example of .xdg spec, which is a nice spec. but if you take 30 people and put them into a room for a month so that they produce a spec. You will end up with something that has probably some good points, but most likely can't be applied in real-world. So I wouldn't juge before having tried to see what we can do to juge what would be the best way. There is one things for sure, it is always easier to add a feature, that to remove one. -- M > Not a terrible thing > and maybe that's fine for most users, but hmm... lots to think about > here. > Thanks! > > On Sat, Feb 21, 2015 at 12:26 PM, Matthias Bussonnier > wrote: >> >> Le 21 f?vr. 2015 ? 09:04, John Omernik a ?crit : >> >>> Since the Kernels that are developed for Jupyter look to be different >>> projects, I am guessing that my question is ok to ask here, but >>> understand if the response is "not an iPython or Jupyter" question. >> >> The question looks fine here. >> >>> >>> I am playing with the iRKernel. https://github.com/takluyver/IRkernel >>> and have a few questions on how kernels in general interact with >>> Jupyter (not just IRKernel) >>> >>> >>> 1. Magics: Based on what I am seeing in the iRKernel, Magics appear to >>> be a "per Kernel" thing rather than a Jupyter thing. Is this correct? >>> In the iRKernel %lsmagic gets me >> >> Yes, they are per-kernel. >> If you write a python-base one, looks at Doug Blank Metakernel >> that add some facilities to write magics. >> >>> >>> Error in parse(text = x, srcfile = src): :1:1: unexpected input >>> 1: %lsmagic >> >> As magic are per-kernel, the kernel is responsible to parse them. >> %lsmagic could be a perfect valid syntax in (perl | php | OCaml | ....) >> because it is **not** valid syntax in Python, wa can make them magic in >> IPython. >> >>> >>> So anythoughts on how to implement magics in other kernels if this is >>> not case? Am I missing something basic here? >> >> Depends on your language. >> Julia decided they did not need magics. >> For example shell access in julia is with `;` >> but it's a property of the language. >> >> Julia have strings macro, so that can do: >> matlab""" >> (some matlab code) >> """ >> >> Ruby have the same. >> >> Advice: >> Pick a syntax that is not valid R. and pre-parse to make it valid R. >> which is what IPtyhon does. >> >>> >>> 2. So I have a some stuff running in iPython through my >>> profile_default startup directory. How do duplicate this so when an R >>> Kernel starts up, I can have certain imports run all the time etc. Is >>> that a kernel specific thing as well? >> >> That depends on your kernel. >> The kernel do whatever it likes. >> If it want to copy us and run the .r files in .ipython/startup, I suppose that would be fine. >> >> If we wan another common way of doing things, we can do a working group. >> But obviously, .py fies are not the right way to configure a R process. >> >> -- >> M >> >> >>> Thanks1 >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From bussonniermatthias at gmail.com Sat Feb 21 14:04:15 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Sat, 21 Feb 2015 11:04:15 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: <54E8596E.5040501@gmx.de> References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> <54E8596E.5040501@gmx.de> Message-ID: <45EAEE0C-104A-4C7E-9A50-1212072062E0@gmail.com> Le 21 f?vr. 2015 ? 02:09, Max Linke a ?crit : > I actually have a problem seeing the docstring and definition right now. By default S-Tab only shows the type, string, and file information. (see attached screenshots) > To get to the for me useful key "definition" I have to press the small plus key. This is really annoying for me because I used S-Tab before to look up the arguments needed for a function. > > Is there a way to define which keywords are shown when I press S-TAB? Shift-Tab -> Show tooltip Shift-Tab x2 -> expand tooltip Shift-Tab x3 -> make tooltip sticky for 10s, you can type, and it won't disappear. Shift-Tab x4 -> send tooltip to pager. Hope that will help. -- M > > best Max > > On 02/19/2015 05:35 PM, Michael Waskom wrote: >> Hi, sorry to be a nuisance, but I'm worried this part of my second email >> may have been overlooked, and it's been bugging me a lot as I've been >> working with the release candidate: >> >> One other thing I have noticed is that, when shift-TABing to get the >> function docstring popover in the notebook, the help seems often bound to >> objects that have been added as arguments, and not to the function >> itself., i.e. >> >> func(a, b, [shift-TAB] >> >> will show me the docstring for the object that `b` points at, although this >> seems to only happen when an variable is being used. In other words, >> >> func(a, "b", [shift-TAB] >> >> will show me the docstring for `a`. >> >> Previously this would happen when using a function within the call, ie.e. >> >> func1(a, func2(b), [shift=TAB] >> >> would should me the docs for `func2` (even if I had closed parens on it). >> But the behavior has changed somewhat. >> >> On Tue, Feb 17, 2015 at 2:56 PM, Matthias Bussonnier < >> bussonniermatthias at gmail.com> wrote: >> >>> >>> Le 17 f?vr. 2015 ? 14:45, Michael Waskom a ?crit : >>> >>> Ooop one more thing I've noticed. ctrl-j/k no longer appears to move >>> cells, although that shortcut is still referenced here: >>> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb >>> (not in the help popup though, so maybe those have been removed, which >>> would make me sad). >>> >>> >>> Yes you are right. The shortcut are conflicting with FF windows, so we >>> removed them. >>> You can add them back in your custom.js though. >>> -- >>> M >>> >>> >>> On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver wrote: >>> >>>> On 17 February 2015 at 13:43, Max Linke wrote: >>>> >>>>> Isn't there a guarantee about which functions are available when >>>>> custom.js is loaded? >>>>> >>>> >>>> Currently, as far as I'm aware, no, there isn't. Possibly we should give >>>> one, though I think that's too late for 3.0 now. >>>> >>>> >>>>> I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with: >>>>> >>>>> IPython.Cell.options_default.cm_config.extraKeys['ctrl-j'] >>>>> >>>> >>>> There's a code snippet to restore Ctrl-J/Ctrl-K here: >>>> https://github.com/ipython/ipython/pull/7732#issuecomment-74519970 >>>> >>>> The shortcuts set in cm_config are only for Codemirror, i.e. they act >>>> within a single cell. Notebook shortcuts, e.g. for moving cells around, are >>>> defined elsewhere. >>>> >>>>> Is it documented somewhere what the recommended way is of enabling >>>>> extensions in the notebook? I can't find anything in the online docs and >>>>> most extensions I find seem to use another way to load it. >>>> >>>> Basically nothing about the JS API is documented yet, and this is kind of >>>> deliberate - most of it is still changing pretty fast, and we don't want to >>>> give a false impression of stability. >>>> >>>> In IPython 3, there is a way of storing declarative frontend config, >>>> including a set of extensions to load, so you don't have to manually edit >>>> custom.js to enable them. There is an extension built on top of this to >>>> provide a GUI for enabling and disabling extensions: >>>> >>>> >>>> https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension >>>> >>>> Thomas >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From john at omernik.com Sat Feb 21 14:15:38 2015 From: john at omernik.com (John Omernik) Date: Sat, 21 Feb 2015 13:15:38 -0600 Subject: [IPython-dev] Jupyter and Other Kernels In-Reply-To: References: <83D3812F-583D-4524-BB81-D87D95AC90FF@gmail.com> Message-ID: Thanks to both of you for your thoughts. This is interesting on the interactions etc. On Sat, Feb 21, 2015 at 12:57 PM, Matthias Bussonnier wrote: > > Le 21 f?vr. 2015 ? 10:40, John Omernik a ?crit : > >> Thanks for the info on the magics. I'll think that one through. Both >> of these issues are interesting in that Kernel devs can be totally >> independent of Jupyter in style (yes they have to follow the API) but >> stylistically, they don't and thus there is not going to be easy >> movement from one kernel to another for users... > > Like many things, it would be nice to have a common place to > have configuration, and we would be happy to have people from other > languages comme into Jupyter steering comity and decide that > it would be a topic to tackle. > > But it is not something we can enforce, or even want to try to tackle, > as we are mostly python programmer, and we are not completely aware > of the need of other languages. > > Let say we create a common place for configuration, > then people using many kernels will feel at home. > Though, people coming from other IDE, or programming environment > would be lost. > > What if I suddenly tell you that if you use in browser ipython terminal > your .bashrc is not read anymore and that you have to use > /usr/local/jupyter/profile_xxx/terminal/.bashrc ? > Would you be happy ? Would we be happy to get 30+ bug report per month > of people not reading the docs ? > > > I'll take the example of .xdg spec, which is a nice spec. > but if you take 30 people and put them into a room for a month so that they > produce a spec. You will end up with something that has probably some good points, > but most likely can't be applied in real-world. > > So I wouldn't juge before having tried to see what we can do to juge what > would be the best way. > > There is one things for sure, it is always easier to add a feature, that to remove one. > -- > M > >> Not a terrible thing >> and maybe that's fine for most users, but hmm... lots to think about >> here. > > > > >> Thanks! >> >> On Sat, Feb 21, 2015 at 12:26 PM, Matthias Bussonnier >> wrote: >>> >>> Le 21 f?vr. 2015 ? 09:04, John Omernik a ?crit : >>> >>>> Since the Kernels that are developed for Jupyter look to be different >>>> projects, I am guessing that my question is ok to ask here, but >>>> understand if the response is "not an iPython or Jupyter" question. >>> >>> The question looks fine here. >>> >>>> >>>> I am playing with the iRKernel. https://github.com/takluyver/IRkernel >>>> and have a few questions on how kernels in general interact with >>>> Jupyter (not just IRKernel) >>>> >>>> >>>> 1. Magics: Based on what I am seeing in the iRKernel, Magics appear to >>>> be a "per Kernel" thing rather than a Jupyter thing. Is this correct? >>>> In the iRKernel %lsmagic gets me >>> >>> Yes, they are per-kernel. >>> If you write a python-base one, looks at Doug Blank Metakernel >>> that add some facilities to write magics. >>> >>>> >>>> Error in parse(text = x, srcfile = src): :1:1: unexpected input >>>> 1: %lsmagic >>> >>> As magic are per-kernel, the kernel is responsible to parse them. >>> %lsmagic could be a perfect valid syntax in (perl | php | OCaml | ....) >>> because it is **not** valid syntax in Python, wa can make them magic in >>> IPython. >>> >>>> >>>> So anythoughts on how to implement magics in other kernels if this is >>>> not case? Am I missing something basic here? >>> >>> Depends on your language. >>> Julia decided they did not need magics. >>> For example shell access in julia is with `;` >>> but it's a property of the language. >>> >>> Julia have strings macro, so that can do: >>> matlab""" >>> (some matlab code) >>> """ >>> >>> Ruby have the same. >>> >>> Advice: >>> Pick a syntax that is not valid R. and pre-parse to make it valid R. >>> which is what IPtyhon does. >>> >>>> >>>> 2. So I have a some stuff running in iPython through my >>>> profile_default startup directory. How do duplicate this so when an R >>>> Kernel starts up, I can have certain imports run all the time etc. Is >>>> that a kernel specific thing as well? >>> >>> That depends on your kernel. >>> The kernel do whatever it likes. >>> If it want to copy us and run the .r files in .ipython/startup, I suppose that would be fine. >>> >>> If we wan another common way of doing things, we can do a working group. >>> But obviously, .py fies are not the right way to configure a R process. >>> >>> -- >>> M >>> >>> >>>> Thanks1 >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From takowl at gmail.com Sat Feb 21 15:33:06 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 21 Feb 2015 12:33:06 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: <54E8596E.5040501@gmx.de> References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> <54E8596E.5040501@gmx.de> Message-ID: On 21 February 2015 at 02:09, Max Linke wrote: > To get to the for me useful key "definition" I have to press the small > plus key. This is really annoying for me because I used S-Tab before to > look up the arguments needed for a function. > > Is there a way to define which keywords are shown when I press S-TAB? > As Matthias mentioned, for now if you hit shift-tab a couple of times, the tooltip should expand to show you more info. For 3.1 I plan to rearrange what it shows to make it more useful (first and foremost, to make sure the function signature is visible): https://github.com/ipython/ipython/issues/7759 -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sun Feb 22 03:09:32 2015 From: benjaminrk at gmail.com (MinRK) Date: Sun, 22 Feb 2015 09:09:32 +0100 Subject: [IPython-dev] ITorch on IPython 3 -- problems? In-Reply-To: References: Message-ID: On Sat, Feb 21, 2015 at 7:35 PM, Andrew Payne wrote: > On getting iTorch working with IPython 3.0: > >> I didn?t play with it too much, but I submitted a couple of PRs >> to >> get iTorch working with IPython 3.0 last week. After those, it seemed to be >> working for me. >> > I've dug into this more deeply and now I'm wondering how you got it > working. > > The iTorch kernel uses kernel messaging v4 (properly reported after your > PR). It uses 'pyout' messages to send stdout. > > When sending the messages, iTorch copies the header from the received > message, including whatever 'version' field is in there. See: > https://github.com/facebook/iTorch/blob/master/IOHandler.lua#L73 > > IPython 3 seems to send execute_request messages with it's current version > setting, 5.0. This causes iTorch to reply with a 'pyout' message tagged as > version 5.0. Which in turn, causes IPython to skip adapting the message to > v5 (since it already thinks it's v5, in kernel/adapter.py). And since > 'pyout' is not in v5, it dropped the message on the floor. > This is caused by a problem in how iTorch builds message headers from copies of the parent header, which it shouldn't do. I fixed most of these in #19 , but apparently not all of them. > > (I've opened a PR to fix this in iTorch by always setting the version to > 4.0, see: https://github.com/facebook/iTorch/pull/28) > > However, it raises questions: > > - Should IPython be sending v5 messages to a kernel that advertises v4? > > No, it shouldn't be, other than the initial kernel_info_request, which is kept compatible with v4 because it is used to determine the protocol version implemented by the kernel. After that reply is handled, the version adaptation should be preventing this. > > - > - Should the kernel messaging code be more verbose (log.warn, or > something) when it gets a message type it doesn't understand? > > For message *type* yes, for message *version*, probably, but I'm not sure. -MinRK > -andy > > > > > > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From max_linke at gmx.de Sun Feb 22 07:18:19 2015 From: max_linke at gmx.de (Max Linke) Date: Sun, 22 Feb 2015 13:18:19 +0100 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> <54E8596E.5040501@gmx.de> Message-ID: <54E9C90B.6080205@gmx.de> Thanks that helps. Is it documented somewhere that I can hit S-Tab several times to expand the tooltip? The Shortcut list in the notebook itself doesn't mention it. best Max On 02/21/2015 09:33 PM, Thomas Kluyver wrote: > On 21 February 2015 at 02:09, Max Linke wrote: > >> To get to the for me useful key "definition" I have to press the small >> plus key. This is really annoying for me because I used S-Tab before to >> look up the arguments needed for a function. >> >> Is there a way to define which keywords are shown when I press S-TAB? >> > > As Matthias mentioned, for now if you hit shift-tab a couple of times, the > tooltip should expand to show you more info. For 3.1 I plan to rearrange > what it shows to make it more useful (first and foremost, to make sure the > function signature is visible): > > https://github.com/ipython/ipython/issues/7759 > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From bussonniermatthias at gmail.com Sun Feb 22 12:17:08 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Sun, 22 Feb 2015 09:17:08 -0800 Subject: [IPython-dev] [ANN] IPython 3.0.0rc1 In-Reply-To: <54E9C90B.6080205@gmx.de> References: <54E1BBE7.6030204@gmx.de> <54E3B613.2020301@gmx.de> <54E8596E.5040501@gmx.de> <54E9C90B.6080205@gmx.de> Message-ID: Le 22 f?vr. 2015 ? 04:18, Max Linke a ?crit : > Thanks that helps. > > Is it documented somewhere that I can hit S-Tab several times to expand > the tooltip? At least here: http://ipython.org/ipython-doc/2/whatsnew/version0.13.html#improved-tooltips and here: http://nbviewer.ipython.org/github/ipython/ipython/blob/0.13.x/docs/examples/notebooks/01_notebook_introduction.ipynb but it might have been lost in the docs since then. > The Shortcut list in the notebook itself doesn't mention it. > > best Max > > On 02/21/2015 09:33 PM, Thomas Kluyver wrote: >> On 21 February 2015 at 02:09, Max Linke wrote: >> >>> To get to the for me useful key "definition" I have to press the small >>> plus key. This is really annoying for me because I used S-Tab before to >>> look up the arguments needed for a function. >>> >>> Is there a way to define which keywords are shown when I press S-TAB? >>> >> >> As Matthias mentioned, for now if you hit shift-tab a couple of times, the >> tooltip should expand to show you more info. For 3.1 I plan to rearrange >> what it shows to make it more useful (first and foremost, to make sure the >> function signature is visible): >> >> https://github.com/ipython/ipython/issues/7759 >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From mattwcraig at gmail.com Mon Feb 23 00:19:46 2015 From: mattwcraig at gmail.com (Matt Craig) Date: Sun, 22 Feb 2015 23:19:46 -0600 Subject: [IPython-dev] widgets in ipython 3 Message-ID: Hi, I've started looking at updating a widget-based notebook I put together for calibrating images in astronomy (https://github.com/mwcraig/reducer) to ipython-3 and had a couple questions: + What documentation is there of the differences between widgets in 2.x and 3.x? I know some of the big changes list in the "What's New" page, and am looking through the widget examples on tmpnb...is there any sort of transition guide or anything? + Is there any way in 3 to use the animated or striped progress bar styles from bootstrap? Very much looking forward to widgets that persist, and have found them incredibly useful! Thanks, Matt Craig -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Feb 23 01:14:51 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sun, 22 Feb 2015 22:14:51 -0800 Subject: [IPython-dev] widgets in ipython 3 In-Reply-To: References: Message-ID: Hi Matt, On 22 February 2015 at 21:19, Matt Craig wrote: > + What documentation is there of the differences between widgets in > 2.x and 3.x? I know some of the big changes list in the "What's New" page, > and am looking through the widget examples on tmpnb...is there any sort of > transition guide or anything? > You're in luck - Jon wrote exactly that the other day: https://github.com/ipython/ipython/wiki/IPython-3.0-comm-and-widget-migration-document > + Is there any way in 3 to use the animated or striped progress bar styles > from bootstrap? > I don't think we've added any new styling abilities, but someone else may be able to correct me on this. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpdiehl at gmail.com Mon Feb 23 13:53:13 2015 From: cpdiehl at gmail.com (diehl) Date: Mon, 23 Feb 2015 10:53:13 -0800 (PST) Subject: [IPython-dev] Getting Started with Widgets in IPython 3 Message-ID: <1424717593094-5087237.post@n6.nabble.com> Hi Folks, I'd like to start experimenting with IPython widgets and use them in an ongoing consulting project. Any suggestions on the best place to start? Is there evolving documentation somewhere? I'm having trouble tracking sources down. Thanks! Chris -- View this message in context: http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html Sent from the IPython - Development mailing list archive at Nabble.com. From raymond.yee at gmail.com Mon Feb 23 13:59:21 2015 From: raymond.yee at gmail.com (Raymond Yee) Date: Mon, 23 Feb 2015 10:59:21 -0800 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: <1424717593094-5087237.post@n6.nabble.com> References: <1424717593094-5087237.post@n6.nabble.com> Message-ID: <54EB7889.2040907@gmail.com> Hi Chris, Here's where I would start -- look at https://github.com/ipython/ipython/tree/2.x/examples, which you can view through nbviewer: http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb. -Raymond On 2/23/15 10:53 AM, diehl wrote: > Hi Folks, > > I'd like to start experimenting with IPython widgets and use them in an > ongoing consulting project. Any suggestions on the best place to start? Is > there evolving documentation somewhere? I'm having trouble tracking sources > down. > > Thanks! > > Chris > > > > -- > View this message in context: http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From bussonniermatthias at gmail.com Mon Feb 23 16:46:51 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 23 Feb 2015 13:46:51 -0800 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: <54EB7889.2040907@gmail.com> References: <1424717593094-5087237.post@n6.nabble.com> <54EB7889.2040907@gmail.com> Message-ID: <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> Following on what have been said on IPython-user, 3.0 should be released this week, which mean that 2.x will not be considered as stable. So be careful or resources pointing to 2.x -- M Le 23 f?vr. 2015 ? 10:59, Raymond Yee a ?crit : > Hi Chris, > > Here's where I would start -- look at > > https://github.com/ipython/ipython/tree/2.x/examples, > > which you can view through nbviewer: > > http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb. > > -Raymond > > On 2/23/15 10:53 AM, diehl wrote: >> Hi Folks, >> >> I'd like to start experimenting with IPython widgets and use them in an >> ongoing consulting project. Any suggestions on the best place to start? Is >> there evolving documentation somewhere? I'm having trouble tracking sources >> down. >> >> Thanks! >> >> Chris >> >> >> >> -- >> View this message in context: http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html >> Sent from the IPython - Development mailing list archive at Nabble.com. >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From cpdiehl at gmail.com Mon Feb 23 20:47:35 2015 From: cpdiehl at gmail.com (Chris Diehl) Date: Mon, 23 Feb 2015 17:47:35 -0800 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> References: <1424717593094-5087237.post@n6.nabble.com> <54EB7889.2040907@gmail.com> <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> Message-ID: Thanks Matthias. Are there good resources for learning the IPy 3.x way of working with widgets? Or is it learn by example at this point? On Mon, Feb 23, 2015 at 1:46 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Following on what have been said on IPython-user, > > 3.0 should be released this week, which mean that 2.x will not be > considered as stable. > So be careful or resources pointing to 2.x > > -- > M > > > Le 23 f?vr. 2015 ? 10:59, Raymond Yee a ?crit : > > > Hi Chris, > > > > Here's where I would start -- look at > > > > https://github.com/ipython/ipython/tree/2.x/examples, > > > > which you can view through nbviewer: > > > > > http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb > . > > > > -Raymond > > > > On 2/23/15 10:53 AM, diehl wrote: > >> Hi Folks, > >> > >> I'd like to start experimenting with IPython widgets and use them in an > >> ongoing consulting project. Any suggestions on the best place to start? > Is > >> there evolving documentation somewhere? I'm having trouble tracking > sources > >> down. > >> > >> Thanks! > >> > >> Chris > >> > >> > >> > >> -- > >> View this message in context: > http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html > >> Sent from the IPython - Development mailing list archive at Nabble.com. > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Mon Feb 23 20:58:36 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Mon, 23 Feb 2015 17:58:36 -0800 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: References: <1424717593094-5087237.post@n6.nabble.com> <54EB7889.2040907@gmail.com> <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> Message-ID: All of the widget examples in the IPython source distribution should be updated to use the IPython 3.0 API. It's also worth noting that IPython 3.0 will be the last release where the widgets are bundled with IPython, in the future they will be integrated into Jupyter with appropriate warnings about the lack of API guarantees. On Monday, February 23, 2015, Chris Diehl wrote: > Thanks Matthias. Are there good resources for learning the IPy 3.x way of > working with widgets? Or is it learn by example at this point? > > On Mon, Feb 23, 2015 at 1:46 PM, Matthias Bussonnier < > bussonniermatthias at gmail.com > > wrote: > >> Following on what have been said on IPython-user, >> >> 3.0 should be released this week, which mean that 2.x will not be >> considered as stable. >> So be careful or resources pointing to 2.x >> >> -- >> M >> >> >> Le 23 f?vr. 2015 ? 10:59, Raymond Yee > > a ?crit : >> >> > Hi Chris, >> > >> > Here's where I would start -- look at >> > >> > https://github.com/ipython/ipython/tree/2.x/examples, >> > >> > which you can view through nbviewer: >> > >> > >> http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb >> . >> > >> > -Raymond >> > >> > On 2/23/15 10:53 AM, diehl wrote: >> >> Hi Folks, >> >> >> >> I'd like to start experimenting with IPython widgets and use them in an >> >> ongoing consulting project. Any suggestions on the best place to >> start? Is >> >> there evolving documentation somewhere? I'm having trouble tracking >> sources >> >> down. >> >> >> >> Thanks! >> >> >> >> Chris >> >> >> >> >> >> >> >> -- >> >> View this message in context: >> http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html >> >> Sent from the IPython - Development mailing list archive at Nabble.com. >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpdiehl at gmail.com Mon Feb 23 21:17:14 2015 From: cpdiehl at gmail.com (Chris Diehl) Date: Mon, 23 Feb 2015 18:17:14 -0800 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: References: <1424717593094-5087237.post@n6.nabble.com> <54EB7889.2040907@gmail.com> <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> Message-ID: Thanks Nathan. Appreciate the feedback! On Mon, Feb 23, 2015 at 5:58 PM, Nathan Goldbaum wrote: > All of the widget examples in the IPython source distribution should be > updated to use the IPython 3.0 API. > > It's also worth noting that IPython 3.0 will be the last release where the > widgets are bundled with IPython, in the future they will be integrated > into Jupyter with appropriate warnings about the lack of API guarantees. > > > On Monday, February 23, 2015, Chris Diehl wrote: > >> Thanks Matthias. Are there good resources for learning the IPy 3.x way of >> working with widgets? Or is it learn by example at this point? >> >> On Mon, Feb 23, 2015 at 1:46 PM, Matthias Bussonnier < >> bussonniermatthias at gmail.com> wrote: >> >>> Following on what have been said on IPython-user, >>> >>> 3.0 should be released this week, which mean that 2.x will not be >>> considered as stable. >>> So be careful or resources pointing to 2.x >>> >>> -- >>> M >>> >>> >>> Le 23 f?vr. 2015 ? 10:59, Raymond Yee a ?crit : >>> >>> > Hi Chris, >>> > >>> > Here's where I would start -- look at >>> > >>> > https://github.com/ipython/ipython/tree/2.x/examples, >>> > >>> > which you can view through nbviewer: >>> > >>> > >>> http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb >>> . >>> > >>> > -Raymond >>> > >>> > On 2/23/15 10:53 AM, diehl wrote: >>> >> Hi Folks, >>> >> >>> >> I'd like to start experimenting with IPython widgets and use them in >>> an >>> >> ongoing consulting project. Any suggestions on the best place to >>> start? Is >>> >> there evolving documentation somewhere? I'm having trouble tracking >>> sources >>> >> down. >>> >> >>> >> Thanks! >>> >> >>> >> Chris >>> >> >>> >> >>> >> >>> >> -- >>> >> View this message in context: >>> http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html >>> >> Sent from the IPython - Development mailing list archive at >>> Nabble.com. >>> >> _______________________________________________ >>> >> IPython-dev mailing list >>> >> IPython-dev at scipy.org >>> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> > >>> > _______________________________________________ >>> > IPython-dev mailing list >>> > IPython-dev at scipy.org >>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rgbkrk at gmail.com Mon Feb 23 23:56:44 2015 From: rgbkrk at gmail.com (Kyle Kelley) Date: Mon, 23 Feb 2015 20:56:44 -0800 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: References: <1424717593094-5087237.post@n6.nabble.com> <54EB7889.2040907@gmail.com> <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> Message-ID: I'm hoping to put together a decent post now that bitjet has come together ( https://github.com/rgbkrk/bitjet). Jonathan Frederic helped me get it going, and I must say that building a custom widget was so fun I'm addicted. That's not to say there won't be pain points though. -- Kyle On Monday, February 23, 2015, Chris Diehl wrote: > Thanks Nathan. Appreciate the feedback! > > On Mon, Feb 23, 2015 at 5:58 PM, Nathan Goldbaum > wrote: > >> All of the widget examples in the IPython source distribution should be >> updated to use the IPython 3.0 API. >> >> It's also worth noting that IPython 3.0 will be the last release where >> the widgets are bundled with IPython, in the future they will be integrated >> into Jupyter with appropriate warnings about the lack of API guarantees. >> >> >> On Monday, February 23, 2015, Chris Diehl > > wrote: >> >>> Thanks Matthias. Are there good resources for learning the IPy 3.x way >>> of working with widgets? Or is it learn by example at this point? >>> >>> On Mon, Feb 23, 2015 at 1:46 PM, Matthias Bussonnier < >>> bussonniermatthias at gmail.com> wrote: >>> >>>> Following on what have been said on IPython-user, >>>> >>>> 3.0 should be released this week, which mean that 2.x will not be >>>> considered as stable. >>>> So be careful or resources pointing to 2.x >>>> >>>> -- >>>> M >>>> >>>> >>>> Le 23 f?vr. 2015 ? 10:59, Raymond Yee a ?crit : >>>> >>>> > Hi Chris, >>>> > >>>> > Here's where I would start -- look at >>>> > >>>> > https://github.com/ipython/ipython/tree/2.x/examples, >>>> > >>>> > which you can view through nbviewer: >>>> > >>>> > >>>> http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb >>>> . >>>> > >>>> > -Raymond >>>> > >>>> > On 2/23/15 10:53 AM, diehl wrote: >>>> >> Hi Folks, >>>> >> >>>> >> I'd like to start experimenting with IPython widgets and use them in >>>> an >>>> >> ongoing consulting project. Any suggestions on the best place to >>>> start? Is >>>> >> there evolving documentation somewhere? I'm having trouble tracking >>>> sources >>>> >> down. >>>> >> >>>> >> Thanks! >>>> >> >>>> >> Chris >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> View this message in context: >>>> http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html >>>> >> Sent from the IPython - Development mailing list archive at >>>> Nabble.com. >>>> >> _______________________________________________ >>>> >> IPython-dev mailing list >>>> >> IPython-dev at scipy.org >>>> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> > >>>> > _______________________________________________ >>>> > IPython-dev mailing list >>>> > IPython-dev at scipy.org >>>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>> >>> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > -- Kyle Kelley (@rgbkrk ; lambdaops.com, developer.rackspace.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpdiehl at gmail.com Tue Feb 24 00:13:24 2015 From: cpdiehl at gmail.com (Chris Diehl) Date: Mon, 23 Feb 2015 21:13:24 -0800 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: References: <1424717593094-5087237.post@n6.nabble.com> <54EB7889.2040907@gmail.com> <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> Message-ID: Look forward to seeing that post Kyle! On Mon, Feb 23, 2015 at 8:56 PM, Kyle Kelley wrote: > I'm hoping to put together a decent post now that bitjet has come together > (https://github.com/rgbkrk/bitjet). Jonathan Frederic helped me get it > going, and I must say that building a custom widget was so fun > I'm addicted. That's not to say there won't be pain points though. > > -- Kyle > > On Monday, February 23, 2015, Chris Diehl wrote: > >> Thanks Nathan. Appreciate the feedback! >> >> On Mon, Feb 23, 2015 at 5:58 PM, Nathan Goldbaum >> wrote: >> >>> All of the widget examples in the IPython source distribution should be >>> updated to use the IPython 3.0 API. >>> >>> It's also worth noting that IPython 3.0 will be the last release where >>> the widgets are bundled with IPython, in the future they will be integrated >>> into Jupyter with appropriate warnings about the lack of API guarantees. >>> >>> >>> On Monday, February 23, 2015, Chris Diehl wrote: >>> >>>> Thanks Matthias. Are there good resources for learning the IPy 3.x way >>>> of working with widgets? Or is it learn by example at this point? >>>> >>>> On Mon, Feb 23, 2015 at 1:46 PM, Matthias Bussonnier < >>>> bussonniermatthias at gmail.com> wrote: >>>> >>>>> Following on what have been said on IPython-user, >>>>> >>>>> 3.0 should be released this week, which mean that 2.x will not be >>>>> considered as stable. >>>>> So be careful or resources pointing to 2.x >>>>> >>>>> -- >>>>> M >>>>> >>>>> >>>>> Le 23 f?vr. 2015 ? 10:59, Raymond Yee a ?crit >>>>> : >>>>> >>>>> > Hi Chris, >>>>> > >>>>> > Here's where I would start -- look at >>>>> > >>>>> > https://github.com/ipython/ipython/tree/2.x/examples, >>>>> > >>>>> > which you can view through nbviewer: >>>>> > >>>>> > >>>>> http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb >>>>> . >>>>> > >>>>> > -Raymond >>>>> > >>>>> > On 2/23/15 10:53 AM, diehl wrote: >>>>> >> Hi Folks, >>>>> >> >>>>> >> I'd like to start experimenting with IPython widgets and use them >>>>> in an >>>>> >> ongoing consulting project. Any suggestions on the best place to >>>>> start? Is >>>>> >> there evolving documentation somewhere? I'm having trouble tracking >>>>> sources >>>>> >> down. >>>>> >> >>>>> >> Thanks! >>>>> >> >>>>> >> Chris >>>>> >> >>>>> >> >>>>> >> >>>>> >> -- >>>>> >> View this message in context: >>>>> http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html >>>>> >> Sent from the IPython - Development mailing list archive at >>>>> Nabble.com. >>>>> >> _______________________________________________ >>>>> >> IPython-dev mailing list >>>>> >> IPython-dev at scipy.org >>>>> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> > >>>>> > _______________________________________________ >>>>> > IPython-dev mailing list >>>>> > IPython-dev at scipy.org >>>>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>> >>>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> > > -- > Kyle Kelley (@rgbkrk ; lambdaops.com, > developer.rackspace.com) > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Tue Feb 24 09:51:40 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Tue, 24 Feb 2015 09:51:40 -0500 Subject: [IPython-dev] Getting Started with Widgets in IPython 3 In-Reply-To: References: <1424717593094-5087237.post@n6.nabble.com> <54EB7889.2040907@gmail.com> <67A2BDD9-84EE-4D76-9B6F-5180770CD220@gmail.com> Message-ID: Plug for the cookiecutter template: https://github.com/bollwyvl/cookiecutter-ipython-widget/tree/v3.0 It's been a while since the template was updated, but i used it last week... Though not with cookiecutter 0.9... There are some new goodies i want to exploit there to make the process smoother. Feedback welcome! As we move forward, though, yeoman will probably be the right home for the "starter kit", as js will be the common denominator... Also it's silly to plan on doing js without having access to things like less, jshint and bower, phantom. On Feb 24, 2015 12:13 AM, "Chris Diehl" wrote: > Look forward to seeing that post Kyle! > > On Mon, Feb 23, 2015 at 8:56 PM, Kyle Kelley wrote: > >> I'm hoping to put together a decent post now that bitjet has come >> together (https://github.com/rgbkrk/bitjet). Jonathan Frederic helped me >> get it going, and I must say that building a custom widget was so fun >> I'm addicted. That's not to say there won't be pain points though. >> >> -- Kyle >> >> On Monday, February 23, 2015, Chris Diehl wrote: >> >>> Thanks Nathan. Appreciate the feedback! >>> >>> On Mon, Feb 23, 2015 at 5:58 PM, Nathan Goldbaum >>> wrote: >>> >>>> All of the widget examples in the IPython source distribution should be >>>> updated to use the IPython 3.0 API. >>>> >>>> It's also worth noting that IPython 3.0 will be the last release where >>>> the widgets are bundled with IPython, in the future they will be integrated >>>> into Jupyter with appropriate warnings about the lack of API guarantees. >>>> >>>> >>>> On Monday, February 23, 2015, Chris Diehl wrote: >>>> >>>>> Thanks Matthias. Are there good resources for learning the IPy 3.x way >>>>> of working with widgets? Or is it learn by example at this point? >>>>> >>>>> On Mon, Feb 23, 2015 at 1:46 PM, Matthias Bussonnier < >>>>> bussonniermatthias at gmail.com> wrote: >>>>> >>>>>> Following on what have been said on IPython-user, >>>>>> >>>>>> 3.0 should be released this week, which mean that 2.x will not be >>>>>> considered as stable. >>>>>> So be careful or resources pointing to 2.x >>>>>> >>>>>> -- >>>>>> M >>>>>> >>>>>> >>>>>> Le 23 f?vr. 2015 ? 10:59, Raymond Yee a >>>>>> ?crit : >>>>>> >>>>>> > Hi Chris, >>>>>> > >>>>>> > Here's where I would start -- look at >>>>>> > >>>>>> > https://github.com/ipython/ipython/tree/2.x/examples, >>>>>> > >>>>>> > which you can view through nbviewer: >>>>>> > >>>>>> > >>>>>> http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb >>>>>> . >>>>>> > >>>>>> > -Raymond >>>>>> > >>>>>> > On 2/23/15 10:53 AM, diehl wrote: >>>>>> >> Hi Folks, >>>>>> >> >>>>>> >> I'd like to start experimenting with IPython widgets and use them >>>>>> in an >>>>>> >> ongoing consulting project. Any suggestions on the best place to >>>>>> start? Is >>>>>> >> there evolving documentation somewhere? I'm having trouble >>>>>> tracking sources >>>>>> >> down. >>>>>> >> >>>>>> >> Thanks! >>>>>> >> >>>>>> >> Chris >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> -- >>>>>> >> View this message in context: >>>>>> http://python.6.x6.nabble.com/Getting-Started-with-Widgets-in-IPython-3-tp5087237.html >>>>>> >> Sent from the IPython - Development mailing list archive at >>>>>> Nabble.com. >>>>>> >> _______________________________________________ >>>>>> >> IPython-dev mailing list >>>>>> >> IPython-dev at scipy.org >>>>>> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> > >>>>>> > _______________________________________________ >>>>>> > IPython-dev mailing list >>>>>> > IPython-dev at scipy.org >>>>>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >> >> -- >> Kyle Kelley (@rgbkrk ; lambdaops.com, >> developer.rackspace.com) >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maplabs at light42.com Tue Feb 24 13:56:20 2015 From: maplabs at light42.com (=?utf-8?b?QnJpYW4gTSBIYW1saW4=?=) Date: Tue, 24 Feb 2015 10:56:20 -0800 Subject: [IPython-dev] python 2.7 / ipython 2.3 Message-ID: <20150224105620.lti9d3sj4oc8o8c0@webmail.light42.com> Hi All - ? I do appreciate the context of pushing the state-of-the-art, and also, some?feedback..? We (OSGeo-Live) are shipping python 2.7 / IPython 2.3 with a ton of science and mapping libs. This is very useful the way it is, and there is value from our point of view to rely on this for some time forwards. SO please consider a frozen set of resources for those not in the (b)leading edge loop. thank you very much? -- Brian M Hamlin OSGeo California Chapter blog.light42.com From takowl at gmail.com Tue Feb 24 14:06:28 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 24 Feb 2015 11:06:28 -0800 Subject: [IPython-dev] python 2.7 / ipython 2.3 In-Reply-To: <20150224105620.lti9d3sj4oc8o8c0@webmail.light42.com> References: <20150224105620.lti9d3sj4oc8o8c0@webmail.light42.com> Message-ID: Hi Brian, On 24 February 2015 at 10:56, Brian M Hamlin wrote: > SO please consider a frozen set of resources for those not in the > (b)leading edge loop. > thank you very much > Our own docs and examples have stable URLs that should keep pointing to 2.x resources indefinitely: http://ipython.org/ipython-doc/2/ http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb Are there any other resources you have in mind? Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Feb 24 14:12:03 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 24 Feb 2015 11:12:03 -0800 Subject: [IPython-dev] python 2.7 / ipython 2.3 In-Reply-To: References: <20150224105620.lti9d3sj4oc8o8c0@webmail.light42.com> Message-ID: Le 24 f?vr. 2015 ? 11:06, Thomas Kluyver a ?crit : > Hi Brian, > > On 24 February 2015 at 10:56, Brian M Hamlin wrote: > SO please consider a frozen set of resources for those not in the (b)leading edge loop. > thank you very much > > Our own docs and examples have stable URLs that should keep pointing to 2.x resources indefinitely: > > http://ipython.org/ipython-doc/2/ > http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb > > Are there any other resources you have in mind? I do believe that other things would be releases on PyPI. And despite the fact that they don't show up, old releases are still here. Really they are just hidden. The only thing we don't commit to, is maintaining old versions. The team is too small for that. Though I suppose that if a group of person is interested in maintaining a specific old branch of that could be arranged. -- M > > Thomas > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Fri Feb 27 19:26:45 2015 From: benjaminrk at gmail.com (MinRK) Date: Fri, 27 Feb 2015 16:26:45 -0800 Subject: [IPython-dev] [ANN] IPython 3.0 Message-ID: Hello all, IPython 3.0 is officially released. Give it a try: pip install --upgrade "ipython[all]" and check out the release notes for the highlights of what?s changed. This is a massive release, with almost 6000 commits and almost 1000 pull requests merged from over 150 contributors. The central feature of 3.0 is improving support for languages other than Python. This includes a new kernel spec , and updates to the message protocol and notebook format . We already have 33 kernels and counting . IPython 3.0 also marks the beginning of the transition to Jupyter. 3.x will be the last monolithic release of IPython, as the next release cycle will see the growing project split into its Python-specific and language-agnostic components. Language-agnostic projects (notebook, qtconsole, protocol, etc.) will move under the umbrella of the new Project Jupyter, while Python-specific projects (interactive Python shell, Python kernel for Jupyter, IPython.parallel) will remain under IPython, and be split into a few smaller packages. To reflect this, IPython is in a bit of a transition state. We are going to do our best to ease this transition for users and developers. With an increasing number of hosted notebook projects such as JupyterHub , where the Notebook UI may be users? only window onto the system, we have added a terminal and text editor to the web UI, so the basics should be covered. Thanks to everyone who helped put this together. -MinRK on behalf of the IPython (and Jupyter) team ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Fri Feb 27 20:50:41 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 27 Feb 2015 17:50:41 -0800 Subject: [IPython-dev] [ANN] IPython 3.0 In-Reply-To: References: Message-ID: <69C88AC5-C7A1-40D1-9DEB-C02F7DE81523@gmail.com> Hi all, Thanks to the team for the hard work, and everyone for sticking around, supporting us, and helping us during this last year. I just want to add that you can try out the new release now in your browser at: http://try.jupyter.org Thanks to Rackspace, @rgbkrk and @smashwilson, we can deploy temporary Docker containers so that you can test it online with no installation. We also had valuable financial support from the Sloan and Simons foundations, which allows several of us to work full time on IPython and Jupyter. Google is also participating financially, and by allowing some of its employees to work on JupyterDrive. We also thank Microsoft and Numfocus for funding which allowed Jon to work on the widgets. Sylvain and Jason also worked on widgets, with support from their employer, Bloomberg. I'll also underline Quantopian, for Scott's time to integrate the PostGres content manager, as well as Continuum for helpful discussion, Dami?n's contributions, and allowing me in particular to attend the Strata conference in San Jos? this year. We have already starting merging PRs for 3.1, so have fun testing and please report any bugs ! Happy coding, -- Matthias From orion at cora.nwra.com Fri Feb 27 21:27:49 2015 From: orion at cora.nwra.com (Orion Poplawski) Date: Fri, 27 Feb 2015 19:27:49 -0700 Subject: [IPython-dev] ipython in Fedora EPEL7 Message-ID: <54F127A5.5040709@cora.nwra.com> Work is underway to package ipython in Fedora EPEL7: https://bugzilla.redhat.com/show_bug.cgi?id=1136051 The questions facing us is whether or not to try to package up an (old) version with the notebook or drop the notebook for a newer version of ipython and provide the notebook in a COPR repo. We are currently limited by the version of python-tornado in RHEL7 - 2.2.1, which would limit us to ipython 1.2.1. Or we could package ipython (hopefully 3.0 at this point, but definitely 2.4.1) without the notebook. Perhaps adding the notebook at a later point if RedHat updates python-tornado (not much expectation there). We would likely stick with whatever major version of ipython lands in EPEL for the lifetime of the RHEL release, so this is a long term decision. Would the ipython devel community like to weigh in on this? Thanks, Orion -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion at cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com From takowl at gmail.com Sat Feb 28 11:22:54 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 28 Feb 2015 08:22:54 -0800 Subject: [IPython-dev] ipython in Fedora EPEL7 In-Reply-To: <54F127A5.5040709@cora.nwra.com> References: <54F127A5.5040709@cora.nwra.com> Message-ID: Hi Orion, On 27 February 2015 at 18:27, Orion Poplawski wrote: > The questions facing us is whether or not to try to package up an (old) > version with the notebook or drop the notebook for a newer version of > ipython and provide the notebook in a COPR repo. > > We are currently limited by the version of python-tornado in RHEL7 - > 2.2.1, which would limit us to ipython 1.2.1. > > Or we could package ipython (hopefully 3.0 at this point, but definitely > 2.4.1) without the notebook. Perhaps adding the notebook at a later > point if RedHat updates python-tornado (not much expectation there). > I would package it without the notebook. We're already not supporting 1.x releases, and even if you got 3.0 in, it will be out of date in a fraction of the lifetime of a RHEL release. I'd rather people who want the notebook be forced to install it another way than get an ancient version. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From conery at uoregon.edu Sat Feb 28 13:20:09 2015 From: conery at uoregon.edu (Conery John) Date: Sat, 28 Feb 2015 10:20:09 -0800 Subject: [IPython-dev] Can't install IPython 3.0, can't reinstall IPython 2.4 Message-ID: <3BAB5AF5-B56C-499A-9BAD-E7EEC28AAED4@uoregon.edu> I tried to upgrade to IPython 3 by running $ pip3 install ?ipython[notebook]? --upgrade but the install fails with a message that says "AttributeError: _DistInfoDistribution__dep_map?. Thinking I might try doing a clean install I uninstalled the previous version and ran ?pip3 install? again but got the same result. I tried to revert to the old version by downloading ipython-rel-2.4.1.tar.gz from GitHub, but that?s also giving me an error message: $ python3 setup.py install ... AssertionError: Missing package data: IPython/html/static/components/backbone/backbone-min.js Any suggestions for how to get IPython (either version) running? I use Python 3.4.2 running on Mac OS X 10.10.2. Thanks.... John Conery From takowl at gmail.com Sat Feb 28 13:24:39 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 28 Feb 2015 10:24:39 -0800 Subject: [IPython-dev] Can't install IPython 3.0, can't reinstall IPython 2.4 In-Reply-To: <3BAB5AF5-B56C-499A-9BAD-E7EEC28AAED4@uoregon.edu> References: <3BAB5AF5-B56C-499A-9BAD-E7EEC28AAED4@uoregon.edu> Message-ID: On 28 February 2015 at 10:20, Conery John wrote: > but the install fails with a message that says "AttributeError: > _DistInfoDistribution__dep_map?. > Sounds like a bug in pip. Can you try upgrading pip itself? Or downgrading, if you're already on the latest version. > I tried to revert to the old version by downloading > ipython-rel-2.4.1.tar.gz from GitHub > Github tarballs are incomplete - this is a known issue, but there's nothing we can do about it. If you want to install from a tarball, grab it from PyPI or archive.ipython.org. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From conery at uoregon.edu Sat Feb 28 13:33:21 2015 From: conery at uoregon.edu (Conery John) Date: Sat, 28 Feb 2015 10:33:21 -0800 Subject: [IPython-dev] Can't install IPython 3.0, can't reinstall IPython 2.4 In-Reply-To: References: <3BAB5AF5-B56C-499A-9BAD-E7EEC28AAED4@uoregon.edu> Message-ID: An old pip was the problem -- I upgraded to pip 6.0.8 and I was able to install IPython3. Thanks! JC > On Feb 28, 2015, at 10:24 AM, Thomas Kluyver wrote: > > On 28 February 2015 at 10:20, Conery John > wrote: > but the install fails with a message that says "AttributeError: _DistInfoDistribution__dep_map?. > > Sounds like a bug in pip. Can you try upgrading pip itself? Or downgrading, if you're already on the latest version. > > I tried to revert to the old version by downloading ipython-rel-2.4.1.tar.gz from GitHub > > Github tarballs are incomplete - this is a known issue, but there's nothing we can do about it. If you want to install from a tarball, grab it from PyPI or archive.ipython.org . > > Thomas > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From ccordoba12 at gmail.com Sat Feb 28 14:49:15 2015 From: ccordoba12 at gmail.com (=?UTF-8?B?Q2FybG9zIEPDs3Jkb2Jh?=) Date: Sat, 28 Feb 2015 14:49:15 -0500 Subject: [IPython-dev] [ANN] IPython 3.0 In-Reply-To: References: Message-ID: <54F21BBB.7050207@gmail.com> Hi, Congratulations to Min, Thomas, Matthias, Brian, Fernando, and the other contributors for a great job. This a fantastic release!! Cheers, Carlos El 27/02/15 a las 19:26, MinRK escribi?: > > Hello all, > > IPython 3.0 is officially released. Give it a try: > > |pip install --upgrade "ipython[all]" > | > > and check out the release notes > for the > highlights of what?s changed. > > This is a massive release, with almost 6000 commits and almost 1000 > pull requests merged from over 150 contributors. The central feature > of 3.0 is improving support for languages other than Python. This > includes a new kernel spec > , > and updates to the message protocol > and > notebook format > . We already > have 33 kernels and counting > . > IPython 3.0 also marks the beginning of the transition to Jupyter. > > 3.x will be the last monolithic release of IPython, as the next > release cycle will see the growing project split into its > Python-specific and language-agnostic components. Language-agnostic > projects (notebook, qtconsole, protocol, etc.) will move under the > umbrella of the new Project Jupyter, while Python-specific projects > (interactive Python shell, Python kernel for Jupyter, > IPython.parallel) will remain under IPython, and be split into a few > smaller packages. To reflect this, IPython is in a bit of a transition > state. We are going to do our best to ease this transition for users > and developers. > > With an increasing number of hosted notebook projects such as > JupyterHub , where the Notebook > UI may be users? only window onto the system, we have added a terminal > and text editor to the web UI, so the basics should be covered. > > Thanks to everyone who helped put this together. > > -MinRK on behalf of the IPython (and Jupyter) team > > ? > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: