Commit Graph

9168 Commits

Author SHA1 Message Date
Julien Rebetez
646619d5cd Check that we have items in markdown cell paste handler 2016-02-24 16:56:24 +01:00
Julien Rebetez
e66ff8f001 Fix drag/drop event handler to be compatible with codemirror 5.8, which
doesn’t allow binary file uploads by default. So we have to intercept
the dragstart event.
2016-02-24 16:56:24 +01:00
Julien Rebetez
b21348f75b Attachments dialog only apply deletion on ‘Apply’. 2016-02-24 16:56:24 +01:00
Julien Rebetez
c4bd66e4b2 Nicer attachments editing dialog 2016-02-24 16:56:24 +01:00
Julien Rebetez
22fccff443 Add a new insert-image action and corresponding dialog to insert inline images from menu. 2016-02-24 16:56:23 +01:00
Julien Rebetez
480c90e473 Refactor the inline image drop logic. Preliminary copy/paste support. 2016-02-24 16:56:23 +01:00
Julien Rebetez
13bcdc9095 Keep the attachments even if the cell type changes 2016-02-24 16:56:23 +01:00
Julien Rebetez
1c6f589ff6 Add attachments cell toolbar option which opens a metadata-like JSON editor. 2016-02-24 16:56:23 +01:00
Julien Rebetez
3414b83855 Insert markdown markup for attachments images instead of HTML 2016-02-24 16:56:23 +01:00
Julien Rebetez
398c90b0aa Use the cell ‘attachments’ property instead of ‘metadata.attachments’.
Use the mime-bundle storage format to store the attachments
2016-02-24 16:56:23 +01:00
Julien Rebetez
3462b34fca Implement markdown cell attachments. Allow drag’n’drop of images into markdown cells. See #613 2016-02-24 16:56:23 +01:00
Min RK
70367e77e3 remove unused force option from js dependencies 2016-02-24 16:05:09 +01:00
Min RK
67b54ffbec clarify jsdeps command description
it's js dependencies (both build and run)
2016-02-24 16:02:50 +01:00
Min RK
d7a0aba848 only write file in jsversion if there's a change to make
avoids updating the file's mtime unnecessarily, forcing a rebuild
2016-02-24 16:00:39 +01:00
Min RK
fdc1bb50da simplify js build steps
- run npm, bower install every time (except from sdist).
  Removes need to check npm, bower sources.
- only check `built/index.js` for build target
  since webpack is only a single step now
2016-02-24 16:00:39 +01:00
Min RK
b0a49719eb Merge pull request #1138 from takluyver/js-no-arrow-func
Don't use arrow functions in webpack js config
2016-02-24 15:58:56 +01:00
Thomas Kluyver
c6fe4db8e8 Don't use arrow functions in webpack js config
The => syntax doesn't work on the version of Node currently packaged in
Ubuntu - which is admittedly two years old, but it's what the
development install instructions point people to.
2016-02-24 13:58:07 +00:00
Thomas Kluyver
843e9a181a Merge pull request #1136 from minrk/close-restart-channel
channel.closed is a method
2016-02-24 13:17:13 +00:00
Min RK
6b82621b9a Merge pull request #1130 from takluyver/daemonic-test-server
Mark thread for test server as daemonic
2016-02-24 13:49:54 +01:00
Min RK
ba161b06dd teardown zmq Context explicitly at the end of each test group
Increases the chances of noticing when we aren't cleaning up our sockets properly.
2016-02-24 13:45:00 +01:00
Min RK
1c47a3dbb5 channel.closed is a method
since we weren't calling it, the restart channel was never closed,
causing process teardown to hang *sometimes*, depending on garbage collection.
2016-02-24 13:43:33 +01:00
Min RK
cadcb75602 don't concatenate stream outputs larger than 8k
Limit is configurable via OutputArea.stream_chunk_size.

This limits the cost of one of the most expensive operations in output: many consecutive outputs on the same stream,
which requires reprocessing and re-appending the whole output to the DOM on each message.
2016-02-24 11:19:31 +01:00
Min RK
d62bdf4774 Merge pull request #1121 from brandles/update-dockerfile
Updated Dockerfile for widgetsnbextension
2016-02-24 09:59:05 +01:00
Min RK
a1458ce8fc Merge pull request #1047 from jdfreder/webpack
use webpack
2016-02-24 08:52:35 +01:00
Safia Abdalla
91397a75b4 Update link to developer documentation 2016-02-23 19:56:01 -06:00
Jonathan Frederic
4b8f19e5e7 Merge pull request #1127 from minrk/read-only-download
Don't force save before download if notebook isn't writable
2016-02-23 16:50:24 -08:00
Min RK
95bd8c3c76 Merge pull request #940 from Carreau/enable-warnings
show warnings during tests
2016-02-23 10:19:58 +01:00
Min RK
7472fc0458 Don't force save before download if notebook isn't writable 2016-02-23 09:10:32 +01:00
Matthias Bussonnier
6ab2cd0dd6 Show warnings during tests 2016-02-22 21:52:14 -08:00
Matthias Bussonnier
cc8b3be283 Merge pull request #1055 from minrk/mathjax-mathml
Allow all MathJax output formats
2016-02-22 17:15:42 -08:00
Jonathan Frederic
a236926743 Upgrade to node 5.6 2016-02-22 14:15:38 -08:00
Thomas Kluyver
ce3dd80391 Mark thread as daemon in a way that Python 2 supports 2016-02-22 18:00:18 +00:00
Thomas Kluyver
c1a2a26551 Mark thread for test server as daemonic
I don't understand how, but I suspect that the threaded server is
somehow involved in the hangs we see after the tests complete. This
marks it as daemonic so that if it somehow escapes it won't keep the
test process alive.
2016-02-22 17:51:57 +00:00
Jonathan Frederic
252b0fcefb Update setupbase to match build output 2016-02-22 07:41:02 -08:00
Thomas Kluyver
6c87dd9246 Merge pull request #1128 from minrk/check-for-geteuid
only check for AttributeError on os.geteuid
2016-02-22 15:39:44 +00:00
Jonathan Frederic
68cd52bd22 Enable deprecated import of auth/main 2016-02-22 07:30:57 -08:00
Jonathan Frederic
b7f6f39b29 Add missing underscore reference 2016-02-22 07:30:57 -08:00
Jonathan Frederic
08e968d7e9 Make events a global singleton 2016-02-22 07:30:57 -08:00
Jonathan Frederic
5b337bbfee Add missing import 2016-02-22 07:30:56 -08:00
Jonathan Frederic
dd57cded75 Fix the new deprecated names test 2016-02-22 07:30:56 -08:00
Jonathan Frederic
4b0aa51ce7 Don't load main files - they should never be referenced anyways,
they break things by resetting global page state.
Also put URL in string
2016-02-22 07:30:56 -08:00
Jonathan Frederic
e64f1f9dc2 Dynamically set base url 2016-02-22 07:30:56 -08:00
Jonathan Frederic
ac7f19821f @williningc's suggestions 2016-02-22 07:30:56 -08:00
Jonathan Frederic
fe5ffc106b Make sure IPython is set on window 2016-02-22 07:30:56 -08:00
Jonathan Frederic
b0fb5df3ad Add source maps, chunks, and remove previous build tool 2016-02-22 07:30:56 -08:00
Jonathan Frederic
638c9d2a4b Update ancient node and npm 2016-02-22 07:30:56 -08:00
Jonathan Frederic
c3e4def82c Add JS building step to setupbase 2016-02-22 07:30:56 -08:00
Jonathan Frederic
8dba4eccdd Add unit tests for deprecated requirejs API 2016-02-22 07:30:56 -08:00
Jonathan Frederic
41246fcc9d Add an info blurb that prints if the notebook is a dev install
Checks to see if the notebook is part of a git repo, if so
suggest to the user `npm run build:watch`
2016-02-22 07:30:56 -08:00
Jonathan Frederic
18edcd3fb4 Allow old style imports, but deprecate them 2016-02-22 07:30:56 -08:00