These are chat archives for ipython/ipython

9th
Sep 2014
Fernando Perez
@fperez
Sep 09 2014 16:59
Hey folks, anyone have the new mathjax cdn url handy? Thanks!
Thomas Kluyver
@takluyver
Sep 09 2014 17:00
Fernando Perez
@fperez
Sep 09 2014 17:00
thx
Thomas Kluyver
@takluyver
Sep 09 2014 17:00
Jessica B. Hamrick
@jhamrick
Sep 09 2014 21:21
Yay, my toolbar for creating assignments in nbgrader is functional! https://github.com/jhamrick/nbgrader/blob/master/docs/assignment-toolbar.md
Thomas Kluyver
@takluyver
Sep 09 2014 21:22
:)
Thomas Kluyver
@takluyver
Sep 09 2014 21:28
Julia-style unicode completion just landed :)
Jessica B. Hamrick
@jhamrick
Sep 09 2014 21:30
Ooooh that is so cool! I didn’t even realize that was valid in python, actually!
Thomas Kluyver
@takluyver
Sep 09 2014 21:30
only in Python 3 ;-)
Jessica B. Hamrick
@jhamrick
Sep 09 2014 21:31
Hehe maybe I will finally officailly switch
Thomas Kluyver
@takluyver
Sep 09 2014 21:31
that's what Brian said too
nice, it works in the Qt console too
Jessica B. Hamrick
@jhamrick
Sep 09 2014 21:32
Hah, yeah, just seeing that now in the PR
Thomas Kluyver
@takluyver
Sep 09 2014 21:34
though not in the terminal. It nearly works in ipython console, but there's a slash left over
Sylvain Corlay
@SylvainCorlay
Sep 09 2014 21:54
Hello, just a quick question. When directly using ipython as a server (with no other proxy, and without anything like the multiuser hub), it seems that I still have access to the static files when not logged in. How can I avoid this.
btw, is it possible to add my custom tornado handlers.
Thomas Kluyver
@takluyver
Sep 09 2014 21:56
let's see if pinging @minrk helps with this ;-)
Sylvain Corlay
@SylvainCorlay
Sep 09 2014 21:57
(Just trying to hack something temporary, nothing permanent there)
thanks :)
Thomas Kluyver
@takluyver
Sep 09 2014 21:57
(I'm assuming @ mentions send someone a notification)
oh yes, he's gone green
Min RK
@minrk
Sep 09 2014 21:57
@SylvainCorlay Files in /static have to be available without logging in, otherwise it couldn't render the login page
(yes, pings do seem to work)
what files are you trying to prevent from being served?
There shouldn't be anything sensitive in /static
Sylvain Corlay
@SylvainCorlay
Sep 09 2014 22:02
For a quick demo, I just put together a static page with bootstrap, with tabs for the dashboard and another one with a ttyjs console. I did this for the demo in a vm, just using IPython's tornado to serve that page, instead of using a proxy as usual.
Min RK
@minrk
Sep 09 2014 22:03
ok
if you put files in /static, you should expect all visitors to be able to see it without authentication
Sylvain Corlay
@SylvainCorlay
Sep 09 2014 22:03
ok, then I should just not do this and set up my proxy.
Min RK
@minrk
Sep 09 2014 22:04
If you want it behind auth, put it in the notebook-dir, and it will be served from /files instead of /static, which is authenticated
Basically, there's no reason that you should ever put anything in /static
(beyound custom.js/css)
Sylvain Corlay
@SylvainCorlay
Sep 09 2014 22:07
OK, thanks. (unless I am behind a proxy right?)
Kyle Kelley
@rgbkrk
Sep 09 2014 22:08
@SylvainCorlay Is the proxy doing other authentication for you?
Sylvain Corlay
@SylvainCorlay
Sep 09 2014 22:08
yes
I was just wondering if there was any other good reason to use /files instead of /static.
Widget js code is in /static for example
Min RK
@minrk
Sep 09 2014 22:21
IPython's sources are in static
Nothing should ever be added there
under any circumstances, really
If it's new functionality, it belongs in nbextensions
The advantage of /files is it works with relative URLs from notebook files
put foo.png next to my.ipynb, and a link in my.ipynb with src="foo.png" will correctly resolve to the image file
Sylvain Corlay
@SylvainCorlay
Sep 09 2014 22:32
ok, we have a lot to move to nbextensions I guess.
Min RK
@minrk
Sep 09 2014 23:50
@takluyver got a sec for a question about input transformers?
Thomas Kluyver
@takluyver
Sep 09 2014 23:51
sure
Min RK
@minrk
Sep 09 2014 23:52
I want a transformer that operates on the whole cell at a time
but it shouldn't prevent any other transformers from doing what they want to do
oh, wait. Do I want a prefilter?
Thomas Kluyver
@takluyver
Sep 09 2014 23:53
you should be able to just save things up until you get a reset signal
Min RK
@minrk
Sep 09 2014 23:54
I think I do that, but then I seem to be preventing subsequent transformers from doing their duty
Thomas Kluyver
@takluyver
Sep 09 2014 23:54
hmm, one moment
no, flush should send it through any remaining transformers
where are you adding it?
Min RK
@minrk
Sep 09 2014 23:58
physical transforms
Thomas Kluyver
@takluyver
Sep 09 2014 23:59
ah, I see it