These are chat archives for ipython/ipython

19th
Nov 2015
Jonathan Frederic
@jdfreder
Nov 19 2015 00:57
Jupyter-pip is pretty minimal
I opened an issue a while back generally about handling permissions better, here: jdfreder/jupyter-pip#13
Here's the doc string for jupyter-pip
Build nbextension cmdclass dict for the setuptools.setup method.
    Parameters
    ----------
    path: str
        Directory relative to the setup file that the nbextension code lives in.
    enable: [str=None]
        Extension to "enable".  Enabling an extension causes it to be loaded
        automatically by the IPython notebook.
    user: [bool=None]
        Whether or not the nbextension should be installed in user mode.
        If this is undefined, the script will install as user mode IF the
        installer is not sudo.
    Usage
    -----
    For automatic loading:
    # Assuming `./extension` is the relative path to the JS files and
    # `./extension/main.js` is the file that you want automatically loaded.
    setup(
        name='extension',
        ...
        cmdclass=cmdclass('extension', 'extension/main'),
    )
    For manual loading:
    # Assuming `./extension` is the relative path to the JS files.
    setup(
        name='extension',
        ...
        cmdclass=cmdclass('extension'),
    )
See user
epifanio
@epifanio
Nov 19 2015 01:02
I see! thank you @jdfreder , I’ll use the —user flag.
Should I leave the code to check if “.local / .jupyter” directory exist ? or jupyter-pip will generate them if not yet available in the user home ?
Jonathan Frederic
@jdfreder
Nov 19 2015 01:04
Well, it's not a flag IIRC, it's an arg that you pass in your setup.py
If it doesn't generate them, it should
but yeah I think it does now
epifanio
@epifanio
Nov 19 2015 01:06
like: python setup.py install —user correct ?
Haroon Khalid
@sodacrunch
Nov 19 2015 22:13
high
waddap