Re: [jupyter] Sprint tasks

2019-11-01 Thread Thomas Kluyver
t; tags. Those should be nice places to > look too. (same is true for jupyter/jupyter-book, if you find somebody > that's interested to work on that!) > > On Fri, Oct 18, 2019 at 4:00 AM Thomas Kluyver wrote: > >> Thanks Chris & Jason. >> >> Chris: good id

Re: [jupyter] Sprint tasks

2019-10-18 Thread Thomas Kluyver
ts/ipywidgets/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 > - though those might be a bit less curated, and they do include probably > more python issues. > > Thanks, > > Jason > > > On Wed, Oct 16, 2019 at 2:18 PM Thomas Kluyver wrote: > >> Hi a

[jupyter] Sprint tasks

2019-10-16 Thread Thomas Kluyver
Hi all, I've said I'll run a Jupyter-related sprint at a Hackathon being organised in London in a couple of weeks (https://www.man.com/hackathon2019 ). I'm not as familiar with Jupyter development as I used to be, so briefly: are there any Jupyter projects, or Jupyter-related projects, with a

Re: [jupyter] Re: Permission issue for /run/user/0/jupyter when I execute jupyter notebook

2019-06-24 Thread Thomas Kluyver
Heads up, if you upgrade jupyter_core to 4.5.0, Jupyter should no longer be affected by XDG_RUNTIME_DIR at all: https://github.com/jupyter/jupyter_core/pull/143 On Mon, 24 Jun 2019 at 10:56, shreyash kawalkar wrote: > *export XDG_RUNTIME_DIR=""* > > On Sunday, 5 June 2016 15:21:42 UTC+5:30, Dij

Re: [jupyter] Jupyterhub server stops

2019-04-25 Thread Thomas Kluyver
Hi Santiago, On Thu, 25 Apr 2019 at 13:43, Santiago Sosa wrote: > when I start the server using "sudo jupyterhub" it works fine until it > goes down (the connection is refused by the server). So, everytime I want > to use jupyter I need to go and start the jupyter server again. > It sounds

Re: [jupyter] Error launching jupyter notebook in cmd

2019-02-28 Thread Thomas Kluyver
That's weird. It says there's a unicode error loading a template file, but the template in question should only have ASCII characters in, and the position that it gives there is after the end of the file. You can see the template file here:

Re: [jupyter] nbformat: Removing code to read XML notebook files

2019-02-16 Thread Thomas Kluyver
Nbconvert doesn't have the same functionality for reading XML notebook files. It was using the standard libary ElementTree module to parse HTML for a couple of filters, and this was switched to defusedxml to prevent attacks where a (JSON) notebook containing maliciously crafted HTML was sent to

Re: [jupyter] nbformat: Removing code to read XML notebook files

2019-02-12 Thread Thomas Kluyver
- I can't think of any recent tools that even >>>> support xml. Thanks for making the PR! >>>> >>>> On Mon, Feb 11, 2019 at 7:01 AM Thomas Kluyver >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>

[jupyter] nbformat: Removing code to read XML notebook files

2019-02-11 Thread Thomas Kluyver
Hi all, Way back in 2011, when the first version of the IPython Notebook was being written, there was an option to store notebooks as XML. JSON was chosen as the default, and has always been the format all of our applications use. However, the code to read XML files stayed around, and recently

Re: [jupyter] Bug (feature?) in notebook >= 5.7

2019-01-07 Thread Thomas Kluyver
The language used in the UI depends on the settings in your browser. Firefox's language settings look like the attached picture. It will use the highest language in the list for which it has translations. At present I don't think there's any way to override this in Jupyter to use a language

Re: [jupyter] Re: Jupyter uses wrong browser

2019-01-07 Thread Thomas Kluyver
To add to that, Jupyter uses the webbrowser module to launch your browser. Here it is in the code: https://github.com/jupyter/notebook/blob/31c2184d011e2a6b78d02f6039f0da4273a2cfb5/notebook/notebookapp.py#L1732 So if you're seeing different behaviour from calling webbrowser.get() yourself, it can

[jupyter] Notebook releases 5.7.3 & 5.7.4

2018-12-17 Thread Thomas Kluyver
Jupyter Notebook has had a couple more minor releases. 5.7.3 made some security improvements: 1. Jupyter now launches your browser by opening an HTML file which redirects to the server with the authentication token. This eliminates a window of time in which another logged-in user could see the

Re: versions disappeared Re: [jupyter] Jupyter Notebook 5.7.1 - security release

2018-11-18 Thread Thomas Kluyver
, seem to be disappeared ... (or I'm > doing some stupid thing ...). > > Best, Pietro > > Il 17/11/18 12:30, Thomas Kluyver ha scritto: > > Hi all, > > I released notebook 5.7.1 yesterday; it should be available from PyPI and > conda-forge now. > > The only

[jupyter] Jupyter Notebook 5.7.1 - security release

2018-11-17 Thread Thomas Kluyver
Hi all, I released notebook 5.7.1 yesterday; it should be available from PyPI and conda-forge now. The only change in this release is a security fix. An oversight in earlier versions meant that using the 'print preview' feature on a malicious notebook could allow it to run untrusted Javascript

Re: [jupyter] Re: Bibliography management for Jupyter

2018-08-09 Thread Thomas Kluyver
If you use Zotero, or you'd be happy to use it for this, you could also look at cite2c: https://github.com/takluyver/cite2c Fair warning, though, it's something of a work-in-not-much-progress. On 8 August 2018 at 09:19, Doug Blank wrote: > You might find calysto document tools handy: > >

Re: [jupyter] How to get ipython3-qtconsole running in Jupyter world?

2018-05-17 Thread Thomas Kluyver
The package on pip and conda is now called 'qtconsole'. I wouldn't recommend installing Jupyter through apt, because Ubuntu's packages are usually outdated. On 17 May 2018 at 16:25, Shriramana Sharma wrote: > Hello. I was happily using IPython3's QtConsole and on my Kubuntu

Re: [jupyter] How to open a .py file

2018-05-05 Thread Thomas Kluyver
On 5 May 2018 at 19:19, Paul Gureghian wrote: > What is the exact syntax for the command to import it programmatically ? > It's documented here: http://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-load -- You received this message because you are

Re: [jupyter] Notebook 5.5 RC1

2018-05-02 Thread Thomas Kluyver
nged that might be leaking file > descriptors? > > I started to see that last week > > Sent from my iPhone > > On May 1, 2018, at 1:00 PM, Thomas Kluyver <tak...@gmail.com> wrote: > > I've just uploaded a release candidate of notebook 5.5 to PyPI. > >

[jupyter] Notebook 5.5 RC1

2018-05-01 Thread Thomas Kluyver
I've just uploaded a release candidate of notebook 5.5 to PyPI. While there's no headline new feature in this release, there are quite a lot of smaller changes, and there's a good chance we've unwittingly broken something. So if you've been looking for ways to contribute to Jupyter, here's an

Re: [jupyter] Removing "extra" kernel

2018-04-27 Thread Thomas Kluyver
Aha, I'd forgotten jupyterhub was involved. The config for the hub is separate from the config for notebook servers. But you can affect the notebook servers config from the hub using spawner args. On Fri, 27 Apr 2018, 8:01 p.m. , wrote: > c.Spawner.args =

Re: [jupyter] Removing "extra" kernel

2018-04-27 Thread Thomas Kluyver
All the names in the Python config file start with "c." Here's the docs for more information: http://jupyter.readthedocs.io/en/latest/projects/config.html On 27 April 2018 at 19:02, wrote: > Thanks all. > > Adding > KernelSpecManager.whitelist="python2.7, python3.4, python3.6,

Re: [jupyter] Removing "extra" kernel

2018-04-27 Thread Thomas Kluyver
> > Default: True > > If there is no Python kernelspec registered and the IPython kernel is > available, ensure it is added to the spec list. > I think that could help if I understood the requirement correctly. > > Cheers. > > > 2018-04-27 12:30 GMT-03:00 Thomas Kluyver <

Re: [jupyter] Removing "extra" kernel

2018-04-27 Thread Thomas Kluyver
It's a special fallback which Jupyter will always find if it can import the ipykernel package. The easiest way to 'get rid' of it is to use the name 'python3' for one of your other kernels (probably the python 3.6 one). If all of your kernels are in separate environments from your notebook

Re: [jupyter] JupyterHub Network Configuration

2018-04-24 Thread Thomas Kluyver
Hi Aliyah, Something that I think often confuses people is that the IP address you configure needs to be the IP address of the VM, not of your computer that you're trying to access it from. You're telling it which network interface to listen on. You can probably find this inside the VM by running

Re: [jupyter] Jupyterhub batchsawner permission error

2018-04-20 Thread Thomas Kluyver
I'm not familiar with how Slurm works, but I'd guess that it's running the job in a context which doesn't have access to that directory; either it's not really running as that user, or it's running after the user has 'logged out', so the directory has been deleted. The simplest workaround is to

Re: [jupyter] Re: Run a tornado shell for easier development

2018-04-10 Thread Thomas Kluyver
+1 good figuring out! On 10 April 2018 at 20:22, wrote: > Nevermind, I figured it out. If anyone wants to run this in future. > > I created shell.py with following: > > #!/usr/bin/env python > > > import os > > import readline > > from pprint import pprint > > > from

Re: [jupyter] Re: $PYTHONPATH for jupyter notebook (and jupyter notebook within jupyter lab)

2018-04-04 Thread Thomas Kluyver
On 4 April 2018 at 09:31, Eric Gayer wrote: > would it be possible to point me to a documentation that explains > kernelspecs ? > It would! http://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs -- You received this message because you are subscribed to the

Re: [jupyter] Can I replace the kernel.js file with my own?

2018-04-03 Thread Thomas Kluyver
The JS files aren't loaded directly, rather they're bundled into a big file called main.min.js. There's information on how to rebuild that here: http://jupyter-notebook.readthedocs.io/en/stable/contributing.html#setting-up-a-development-environment If you can see what you need to do, you're free

Re: [jupyter] terminal closing error

2018-03-29 Thread Thomas Kluyver
0.8.1py36_1 > notebook 5.4.1py36_0 > > > > On Mar 29, 2018, at 4:21 AM, Thomas Kluyver <tak...@gmail.com> wrote: > > Thanks. It matters because closing the tab is a very different operation > from e

Re: [jupyter] terminal closing error

2018-03-29 Thread Thomas Kluyver
Thanks. It matters because closing the tab is a very different operation from exiting the terminal, and I wasn't sure which you were doing. I can't reproduce this at the moment. Are your 'notebook' and 'terminado' packages both up to date? On 28 March 2018 at 23:11, Gideon Simpson

Re: [jupyter] How would you build a dashboard in a Jupyter notebook?

2018-03-28 Thread Thomas Kluyver
For the record, your messages were in the Google Groups spam filter (which seems to be problematic lately, because a load of messages got caught in it). After a day or so, we get an email telling us that some messages were filtered, and we can go and approve them. On 27 March 2018 at 20:10,

Re: [jupyter] terminal closing error

2018-03-27 Thread Thomas Kluyver
How are you closing it? On 27 March 2018 at 06:30, Gideon Simpson wrote: > When trying to close a terminal in jupyter, I get the following error. > Any suggestions? > > > > [E 00:23:09.324 NotebookApp] Uncaught exception in /terminals/websocket/1 > > Traceback

Re: [jupyter] Closing parenthesis equal rights

2018-03-19 Thread Thomas Kluyver
The JS text editor component we use is called CodeMirror. If CodeMirror already has an option to do what you want, we can probably find a way to enable it. Otherwise, you'd need to convince CodeMirror to add the feature first. On 18 March 2018 at 08:23, 'Daniel Volinski' via Project Jupyter <

[jupyter] Security release: Notebook 5.4.1

2018-03-18 Thread Thomas Kluyver
We have released a minor version of Jupyter Notebook to fix a security vulnerability which allows a malicious notebook file containing invalid HTML to execute Javascript when it is loaded. Because Javascript on a notebook page can communicate with kernels, it can then do any operation that the

Re: [jupyter] Re: Reverting to a previous checkpoint

2018-03-16 Thread Thomas Kluyver
To explain a bit, we keep one checkpoint in case autosave fires at just the wrong moment. We don't try to keep multiple checkpoints because that would be reinventing version control badly. We recommend using a version control system (like git or mercurial). On 16 March 2018 at 08:08, Tony Vignaux

Re: [jupyter] how can i elect the browser used by jupyter notebook in linux?

2018-03-15 Thread Thomas Kluyver
You need to set it to one of the names recognised by the webbrowser module: https://docs.python.org/3/library/webbrowser.html You can also use the BROWSER environment variable to set the default. On 15 March 2018 at 08:48, 唐彬 wrote: > I have created the config file and

Re: [jupyter] Jupyter 4.4.0 tables aren't rendering on Gist

2018-03-15 Thread Thomas Kluyver
Some content is not rendered on Github for security reasons (so it can't steal your Github login). I don't know why tables would be affected, though. Do you have something that displays interactive tables for pandas output? On 15 March 2018 at 11:26, Graham Anderson wrote:

Re: [jupyter] MemoryError while running code in jupyter notebook

2018-03-13 Thread Thomas Kluyver
MemoryError usually means your computer has run out of memory (or the user/process has used up its memory quota, and the system won't give it any more). On 13 March 2018 at 10:04, PREMVARDHAN KUMAR wrote: > When i am creating tf-idf feature matrix it shows me

Re: [jupyter] How to change the name and logo of the default kernel in jupyterlab

2018-03-12 Thread Thomas Kluyver
I'd guess the browser is caching the logo files from before you changed them. On 12 March 2018 at 09:01, Konstantin Markov wrote: > Hi, > > I would like to change the name (Python 3) and the logo (the Python logo) > of the default python3 kernel which show up in

Re: [jupyter] subprocess output -> Output widget not working

2018-03-07 Thread Thomas Kluyver
It won't process the message from the kill button until after it's done running the process. What I'm suggesting is that you rely on Jupyter's interrupt feature (the stop button in the toolbar) to stop the process, instead of making your own kill button. To do that, all you need to do is catch

Re: [jupyter] subprocess output -> Output widget not working

2018-03-07 Thread Thomas Kluyver
Have a look at this demo notebook: https://github.com/takluyver/rt2-workshop-jupyter/blob/e7fde6565e28adf31a0f9003094db70c3766bd6d/Subprocess%20output.ipynb It doesn't put output into a widget, but it's using print(), so it should be easy to combine with a widget. If you're happy to kill the

[jupyter] Study results: use of chat systems for open source projects

2018-03-01 Thread Thomas Kluyver
I was sent the results of a study I took part in about how to use online chat tools for open source projects. It was specifically looking at gitter, but I think the guidelines it developed are applicable to any similar chat system. There's a PDF of the results here:

Re: [jupyter] Re: Jupter notebook does not display all the folders

2018-02-26 Thread Thomas Kluyver
To clarify, Jupyter Notebook (the individual server) *does* support Windows. JupyterHub, which provides multi-user authenticated notebook servers, does not. On 23 February 2018 at 14:14, David Doherty wrote: > Got any more details? It won't display folders starting with

Re: [jupyter] How to know which config file is being used?

2018-02-12 Thread Thomas Kluyver
Sorry, I've never seen it before. If you don't know you've installed an extension, chances are it's something built into your browser. On 12 February 2018 at 17:28, Nate L. wrote: > I don't think the search bar is something from a browser extension, (I > don't think I ever

Re: [jupyter] How to know which config file is being used?

2018-02-12 Thread Thomas Kluyver
Reinstalling probably won't make a difference to issues in the browser like that, though it's always possible. Is the search bar something from a browser extension? If it captures the key event before we get it, there's not much we can do about that. On 12 February 2018 at 16:33, Nate L.

Re: [jupyter] Android Native FrontEnd for Jupyter Notebook

2018-02-12 Thread Thomas Kluyver
We have a 'powered by Jupyter' logo which we encourage projects to use, but it doesn't lend itself to combining with other things. So if you want to design an alternative Jupyter motif to use for such logos, go for it! (Unfortunately, I don't know where you can get the 'powered by' logo except by

Re: [jupyter] How to know which config file is being used?

2018-02-12 Thread Thomas Kluyver
It can be tricky to get custom.js to load things at the right point. Have a look at the examples here to wait for promises: https://github.com/jupyter/notebook/blob/master/notebook/static/custom/custom.js If you're having some trouble, scatter some console.log('A') calls around (with different

Re: [jupyter] Android Native FrontEnd for Jupyter Notebook

2018-02-10 Thread Thomas Kluyver
Thanks, that sounds good. I might get round to making a PR at some point. I've opened an issue on the design repo to see if anyone's interested in working with you on a logo: https://github.com/jupyter/design/issues/49 On 10 February 2018 at 13:58, Kazuma Arino wrote: > As

Re: [jupyter] Android Native FrontEnd for Jupyter Notebook

2018-02-07 Thread Thomas Kluyver
I took longer than I expected to get round to it, but I've got it installed and working on my tablet. Nice work! Obviously a nice next step would be to allow it to connect to a remote URL, so port forwarding isn't needed. I think this should be as simple as replacing a few hardcoded copies of

Re: [jupyter] Neater way to use greek letters in markdown cell?

2018-02-06 Thread Thomas Kluyver
Use single dollar signs instead of double: $\alpha$ . Single dollars puts maths inline, double dollars puts them in a block. On 6 February 2018 at 11:58, Arie van Wingerden wrote: > I have this in a markdown cell: > > >

Re: [jupyter] When nbconverting .ipynb to .html how to add a link to the notebook css rather that the css itself ?

2018-02-05 Thread Thomas Kluyver
I don't think there is a good way to override it at the moment. Feel free to open an issue on nbconvert about it. The difficulty is that the template doesn't know about the notebook CSS specifically - it loops over several different bits of CSS it needs to inline. On 3 February 2018 at 22:59,

Re: [jupyter] Re: how come cells do not display all my code?

2018-02-05 Thread Thomas Kluyver
Do you have any extensions or custom config in your browser? Can you reproduce the problem in another browser? On 5 February 2018 at 07:02, Roland Weber wrote: > Hello Andy, > > maybe there's something in the default stylesheet. I know that long output > is shown with a

Re: [jupyter] Julia magic not working

2018-02-02 Thread Thomas Kluyver
You need to install pyjulia. See the instructions in the readme: https://github.com/JuliaPy/pyjulia And then inside IPython, run: %load_ext julia.magic On 2 February 2018 at 02:27, Dan wrote: > I cannot get %%julia magic to work. I can use a julia kernel for a > notebook,

Re: [jupyter] Modifying the Dynamic Buttons in the Notebook Server

2018-01-29 Thread Thomas Kluyver
/index.js It works the same way as an nbextension modifying the notebook page, but you have to make sure it's enabled for the tree view. Thomas On 29 January 2018 at 09:30, 'Ian Stuart' via Project Jupyter < jupyter@googlegroups.com> wrote: > > > On 27 January 2018 at 10:03, Thom

Re: [jupyter] Websocket pings not happening

2018-01-27 Thread Thomas Kluyver
Hi Rob, Not sure what could have caused that, but it's plausible that we broke it without noticing at some point. Do you want to open an issue on jupyter/notebook to reduce the chance that it gets forgotten? Thomas On 23 January 2018 at 17:09, wrote: > Hello, > >

Re: [jupyter] Running jupyter from docker not able to log in

2018-01-27 Thread Thomas Kluyver
Do you specifically want JupyterHub, which is a multi-user server? If you're just looking to use the notebook as an individual, you probably want to start with an image like one of these: https://hub.docker.com/r/jupyter/datascience-notebook/ https://hub.docker.com/r/jupyter/scipy-notebook/ On

Re: [jupyter] Modifying the Dynamic Buttons in the Notebook Server

2018-01-27 Thread Thomas Kluyver
On 25 January 2018 at 16:50, 'Ian Stuart' via Project Jupyter < jupyter@googlegroups.com> wrote: > 1) I've read http://mindtrove.info/4-ways-to-extend-jupyter- > notebook/#nb-server-exts - but where does this code & how do I install it? > The code goes anywhere that it can be imported from

Re: [jupyter] Re: Just ran "conda upgrade notebook" to get .5.3.1 now notebook won't start

2018-01-23 Thread Thomas Kluyver
See https://github.com/Anaconda-Platform/nb_conda_kernels/issues/74 I'm not sure if it's the same issue, but there's also a suggestion that nb_conda_kernels is incompatible with the most recent conda: https://github.com/Anaconda-Platform/nb_conda_kernels/issues/73 On 23 January 2018 at 15:22,

Re: [jupyter] bug with logout?

2018-01-22 Thread Thomas Kluyver
There's two ways to approach it. One is, as you're describing, to have a central store of currently valid tokens, and check against that. The other is to have tokens that contain information on what permissions they grant and when they expire, with a cryptographic signature to prevent tampering.

Re: [jupyter] Re: Notebook 5.3 released

2018-01-17 Thread Thomas Kluyver
Thanks for the heads up - I've responded to that message. And thanks for your efforts managing the IPython subreddit! On 17 January 2018 at 13:04, Damon Allen wrote: > First, congratulations, and again, thanks to everyone involved for all > their hard work! Second,

Re: [jupyter] Does jupyter send the whole cell to kernel when auto completion happens

2018-01-11 Thread Thomas Kluyver
It sends the whole cell, along with the cursor position in the cell. I don't think we've tested performance much, but I would expect that you'd need a very big cell before the extra cost of sending it all outweighs the general overhead of sending a message and waiting for a reply from the kernel.

Re: [jupyter] Android Native FrontEnd for Jupyter Notebook

2018-01-08 Thread Thomas Kluyver
Cool, I'm definitely going to play with this on my tablet when I'm back home. Thanks Kazuma! On 8 January 2018 at 03:21, Kazuma Arino wrote: > Hi, I'm creating native android Notebook frontend. > > It's still alpha stage, but now basic functionality working and I can > start

Re: [jupyter] Is there a way to navigate around a notebook using something like bookmarks?

2018-01-04 Thread Thomas Kluyver
Have a look at this extension: http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/toc2/README.html On 4 January 2018 at 17:00, Gail Reyes wrote: > > I have a notebook with perhaps a hundred cells.I want to be able to > jump from one place in

Re: [jupyter] Protected Jupyter Notebooks

2018-01-04 Thread Thomas Kluyver
No, there's no DRM-like facilities to prevent people copying notebooks freely, and we're unlikely to work on any. On 4 January 2018 at 17:14, wrote: > Are there any mechanisms for protecting content in Jupyter Notebooks? > > I'd like to create a Jupyter version of

Re: [jupyter] Re: build installable file - OLPC XO laptop - Fedora 18

2018-01-03 Thread Thomas Kluyver
You should be able to get most of the packages by running 'pip wheel notebook' on an internet-connected machine. That will save a load of .whl files in the current directory. Transfer that folder to the target machine, and run 'pip install path/to/folder/*.whl'. The tricky bit is pyzmq, Jupyter's

Re: [jupyter] Planning to shutdown tmpnb.org in favor of mybinder.org

2017-12-21 Thread Thomas Kluyver
Automatically showcasing popular binders brings up some possible complications like that, but a manually curated list doesn't. This is what we do on the nbviewer homepage, and I think it's a good idea to do the same for Binder, whether it's on the mybinder.org homepage or elsewhere. On 21

Re: [jupyter] Insert Current date - Markdown ?

2017-12-20 Thread Thomas Kluyver
Something like this extension? http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/datestamper/readme.html If that's not quite what you're after, have a look through this list of extensions, there may be one that's closer:

Re: [jupyter] Re: How does jupyter show dataframe as html table ?

2017-12-20 Thread Thomas Kluyver
Plus overview docs here: http://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display On 20 December 2017 at 07:08, Lawrence D’Oliveiro wrote: > On Wednesday, December 20, 2017 at 3:13:55 PM UTC+13, Jeff Zhang wrote: >> >> Just wondering how does jupyter

Re: [jupyter] IPython.notebook.kernel.execute() won't let me assign js UTF-8 strings

2017-12-20 Thread Thomas Kluyver
Hi Harris, Can you show the code that you're running? I'm having trouble following the description. Thomas On 20 December 2017 at 06:23, Harris Joseph wrote: > > To avoid collisions on the server's filesystem, I am trying to upload csv > files as strings directly

Re: [jupyter] Auto-running notebook and hooking an event on completion

2017-12-20 Thread Thomas Kluyver
You could use the --execute option when you call nbconvert. On 20 December 2017 at 02:30, Pouya Ghadimi Karahrodi < pouya.ghad...@gmail.com> wrote: > Is this resolved ? I am trying to automate a notebook run and conversion > to pdf. > The missing step is the save after the notebook run

Re: [jupyter] Re: Working on a Common Lisp Jupyter notebook server - and experiencing a crash in ipython code

2017-12-19 Thread Thomas Kluyver
I think the design of ZMQ is that each thread should have its own socket. But I don't know whether this would help with the issue you're seeing. And there may be an extra complication because the kernel binds the sockets (not connects), and I think only one socket can be bound to an endpoint at

Re: [jupyter] Re: Working on a Common Lisp Jupyter notebook server - and experiencing a crash in ipython code

2017-12-19 Thread Thomas Kluyver
The Jupyter protocol relies on ZMQ 'multipart' messages. IIRC, a multipart message is a series of individual messages with the SNDMORE flag set on all but the last one. I don't know if those parts are meant to be separated out again if two threads are sending parts interleaved to the same

Re: [jupyter] Where can I find materials for how to use IPython api

2017-12-19 Thread Thomas Kluyver
Hi Jeff, You could look at some IPython extensions to see how they use the API: https://github.com/ipython/ipython/wiki/Extensions-Index . What sort of project are you planning to embed IPython into? Thomas On 19 December 2017 at 11:51, Jeff Zhang wrote: > > I'd like to

Re: [jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread Thomas Kluyver
Oh, I missed that it's related to widgets. Widgets won't work in the Qt console, because they need an HTML frontend. You might need to insert some debugging code. On 18 December 2017 at 16:28, Christian Schafmeister < drschafmeis...@gmail.com> wrote: > Thank you! > > I'll give qtconsole a whirl.

Re: [jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread Thomas Kluyver
I'm not sure about monitoring websockets, but the websocket messages should be directly translated from the ZMQ messages. If you run the Qt console with the debug option (jupyter qtconsole --debug --kernel mykernelname), it should show all the messages it sends and receives in the terminal where

Re: [jupyter] Unable to Update jupyter via PIP on Mac

2017-12-15 Thread Thomas Kluyver
It's not recommended to use pip with sudo. Either user the --user flag for pip to install under your home directory, or create a virtualenv or conda env to install packages into. Thomas On 15 December 2017 at 17:08, Mihkael Kolodny wrote: > Hi All - Appreciate your

Re: [jupyter] Jupyter Kernel Spec + N times refreshing for N Kernels + Slow start up #3135

2017-12-15 Thread Thomas Kluyver
I'll investigate and post updates on the issue. It's best to post the issue in just one place - we get notifications for issues, so you don't need to send it to the mailing list as well. Posting in two places can split discussion and lead to duplicated effort. Thanks! On 15 December 2017 at

Re: [jupyter] Re: try.jupyter.org down?

2017-12-14 Thread Thomas Kluyver
On 14 December 2017 at 17:32, David MacQuigg wrote: > I'm also seeing "Error 503 No healthy backends" when I try to access > nbviewer. I assume that's the same problem. > It is indeed. -- You received this message because you are subscribed to the Google Groups "Project

Re: [jupyter] Re: try.jupyter.org down?

2017-12-14 Thread Thomas Kluyver
All of our hosted services are down at the moment - people are working on it. On 14 December 2017 at 17:24, David MacQuigg wrote: > I have tried both Safari and Chrome (running on Mac OS X). It says > "Waiting for tmpnb.org ... " then shows only a blank page (or sometimes a

Re: [jupyter] Sub domain nbviewer.jupyter.org is not accessible hours ago. [to signal the problem HTTP 503].Thanks

2017-12-14 Thread Thomas Kluyver
Thanks - we're aware of the problem, and people are working on it. It may be a while before it's back up, though. On 14 December 2017 at 13:56, Abderrahim Ben wrote: > All in the title. > Thank you > > -- > You received this message because you are subscribed to the Google

Re: [jupyter] Re: NotebookApp configuration error

2017-12-13 Thread Thomas Kluyver
The security model in the notebook is that you run it and you access it - Jupyter gives you access to the same files that your user can already access on the machine. If you want authentication for different users, look at JupyterHub: http://jupyterhub.readthedocs.io/en/latest/ On 13 December

Re: [jupyter] NotebookApp configuration error

2017-12-13 Thread Thomas Kluyver
Or it might be pointing to another bit of the same file. The error message points to line 167 - check that line in your editor. On 13 December 2017 at 06:39, Roland Weber wrote: > If your editor shows 'c.NotebookApp.ip', but the error message is about > 'NotebookApp.ip',

Re: [jupyter] NotebookApp configuration error

2017-12-12 Thread Thomas Kluyver
In the Python config file, names should start with c. - like c.NotebookApp.ip . You should be able to find this already in the generated config file and uncomment it. On 12 December 2017 at 20:33, Pasle Choix wrote: > I installed Anaconda2 and followed this doc:

Re: [jupyter] Creating a notebook ipynb file using notebook json which we get from a server

2017-12-12 Thread Thomas Kluyver
Ah, I see - it's coming from a different server. In that case, you'll need to do something like this: // Valid notebook JSON - see http://nbformat.readthedocs.io/en/latest/format_description.html var nb_json = {"nbformat": 4, ...} var model = {type: "notebook", content: nb_json}

Re: [jupyter] Creating a notebook ipynb file using notebook json which we get from a server

2017-12-11 Thread Thomas Kluyver
It's probably easiest to create a file on the server side, then you just need to open a window with the right URL to view it. To do this from the Javascript side, you'd need to get the data from the server and then send it straight back to be saved to a file. On 11 December 2017 at 16:01,

Re: [jupyter] Starting jupyter console in non interactive mode

2017-12-07 Thread Thomas Kluyver
- > http://www.alcim.net > > On Thu, Dec 7, 2017 at 9:09 PM, Carlos Córdoba <ccordob...@gmail.com> > wrote: > >> Xavier, you could start a kernel and connect to it, instead of starting a >> jupyter console. If you're using ipykernel, that just requires running

Re: [jupyter] Starting jupyter console in non interactive mode

2017-12-07 Thread Thomas Kluyver
Why do you want to start a console in the background? A console is an interactive user interface, so it doesn't really make sense to run it in the background. We can probably figure out a way to do it, but there may be a better way to achieve what you want to do. On 7 December 2017 at 18:23,

Re: [jupyter] Jupyter text editor does not recognize file changes

2017-12-01 Thread Thomas Kluyver
There's a pull request, but it got stuck for a while. I forget why. Maybe we need to look at it again: https://github.com/jupyter/notebook/pull/2783 On 1 December 2017 at 19:32, Tim Harsch wrote: > Hi all, > When two users are editing in the same notebook that the

Re: [jupyter] CSS in IPython display with XML

2017-11-30 Thread Thomas Kluyver
Like your previous example, I think - assemble an HTML fragment including a tag, and then display that. On 29 November 2017 at 23:30, Jonathan Robie wrote: > I am writing some notebooks for processing Greek syntax trees using XPath > / XQuery: > >

Re: [jupyter] Re: GDL kernel for Jupyter ?

2017-11-24 Thread Thomas Kluyver
There are several other kernels that work well and have an active community of users. The Julia, Haskell and R kernels are among the most used, I think. There are also third party cell magics that work pretty well, like R and Cython. Inevitably not every project in the ecosystem works as well,

Re: [jupyter] Re: The Kernel appears to have died. It will restart automatically ? Please help !

2017-11-20 Thread Thomas Kluyver
On 20 November 2017 at 18:58, Karthik Ram wrote: > Argg. Thank you Thomas. It did run longer(17 min as opposed to 10 min) > this time after I un-commented those lines, but still saw the same issue. > Is there any limitation in Jupyter that it cannot handle more than certain

[jupyter] Moving Terminado into Jupyter maintenance

2017-11-20 Thread Thomas Kluyver
Terminado (http://terminado.readthedocs.io/en/latest/ ) is part of the machinery that we use for interactive terminals in the browser. Xterm.js ( https://xtermjs.org/ ) provides the frontend in the browser, which is where most of the complexity is needed, while Terminado is a relatively simple

Re: [jupyter] Re: The Kernel appears to have died. It will restart automatically ? Please help !

2017-11-20 Thread Thomas Kluyver
On 19 November 2017 at 22:28, Karthik Ram wrote: > I also changed the following in jupyterhub_config.py file. But still > seeing the issue. > > ... > #c.Spawner.mem_guarantee = 8G > > You'll need to uncomment these lines for them to affect anything, i.e. remove the # from

Re: [jupyter] Jupyter architecture and kernel development and extensibility...

2017-11-15 Thread Thomas Kluyver
Hi John, On 15 November 2017 at 19:17, john alexander sanabria ordonez < john.sanab...@correounivalle.edu.co> wrote: > Hello, > > I would love to have a more clear idea about Jupyter's architecture > because I want to know: > >1. what is the role of kernels in Jupyter (how is the interaction

Re: [jupyter] Per Cell Kernels

2017-11-13 Thread Thomas Kluyver
There are some options for doing this at the kernel level - e.g. in an IPython kernel there are extensions to let you use %%R and %%julia cell magics. Then there are things like the Script-of-Scripts kernel: https://github.com/vatlab/SOS . There's also a notebook project called Beaker which aims

Re: [jupyter] Moving nbmanager into Jupyter Github org?

2017-11-13 Thread Thomas Kluyver
Thanks all. I have gone ahead and made the transfer. On 12 November 2017 at 03:54, Matthias Bussonnier < bussonniermatth...@gmail.com> wrote: > +1 as well. > > On Sat, Nov 11, 2017 at 5:44 PM, Steven Silvester > wrote: > > +1 as well. > > > > -- > > You received this

Re: [jupyter] Moving nbmanager into Jupyter Github org?

2017-11-11 Thread Thomas Kluyver
7:39 AM, Carol Willing <willi...@gmail.com> >> wrote: >> >> Sounds like a great plan for sustainable development. +1 >> >> >> >> On Nov 10, 2017 7:02 AM, "MinRK" <benjami...@gmail.com> wrote: >> >>> >> >>> +1 to moving

[jupyter] Moving nbmanager into Jupyter Github org?

2017-11-10 Thread Thomas Kluyver
Hi all, Some time ago, I wrote nbmanager (https://github.com/takluyver/nbmanager ), a small PyQt application to list running notebook servers and shut them down. It has a steady trickle of people using it, or attempting to use it and running into problems, but I only occasionally use it myself,

Re: [jupyter] Appmode: A new extension for turning notebooks into web applications

2017-11-09 Thread Thomas Kluyver
Thanks Ole, this looks really neat! On 9 November 2017 at 10:34, wrote: > Hi Everybody, > > I would like to share with you a new Jupyter extensions that I have > developed. It's called Appmode and it turns notebooks into web applications: > >

Re: [jupyter] how to read the rest docstring in QtConsole

2017-11-04 Thread Thomas Kluyver
I think the tooltip can only show the short version, but if you type np.where? and press enter, you should see the full thing. On 3 November 2017 at 23:06, Heming Pang wrote: > I use macOS, how could I read the rest docstring in jupyter QtConsole? > thanks > > > >

  1   2   3   >