4 ms·
An unanswered question in the G+ discussion is how libraries not in the default config can be added. Can I "pip install" into a NaCl IPython kernel?
by bsg75 12y ago
An unanswered question in the G+ discussion is how libraries not in the default config can be added. Can I "pip install" into a NaCl IPython kernel?
- mturk 12y agoNo, not quite. It depends on if the library is pure python. If it is, then adding support for pip install is possible, but not implemented. If it's not pure python, it is a lot harder -- it has to be statically linked into the PNaCl executable, which sometimes requires a bit of patching the code. For example, to get pandas in, I had to modify how it included np_datetime, and to get HDF5 in I had to pre-generate how it managed endianness. That being said, I've been working on making it easier for pure python importing, and one fun thing is that you can actually mount an HTTP/CORS-accessible endpoint as a file system and import that. I have done this with a pastebin; I turned on CORS, mounted it inside the NaCl kernel, and executed pastes.