コード例 #1
0
ファイル: setup.py プロジェクト: saraedum/sage-renamed
    def install_kernel_spec(self):
        """
        Install the Jupyter kernel spec.

        .. NOTE::

            The files are generated, not copied. Therefore, we cannot
            use ``data_files`` for this.
        """
        from sage.repl.ipython_kernel.install import SageKernelSpec
        SageKernelSpec.update()
コード例 #2
0
ファイル: setup.py プロジェクト: EnterStudios/sage-1
    def install_kernel_spec(self):
        """
        Install the Jupyter kernel spec.

        .. NOTE::

            The files are generated, not copied. Therefore, we cannot
            use ``data_files`` for this.
        """
        from sage.repl.ipython_kernel.install import SageKernelSpec
        SageKernelSpec.update()
コード例 #3
0
ファイル: sage_install.py プロジェクト: timgates42/sage
    def install_kernel_spec(self):
        """
        Install the Jupyter kernel spec.

        .. NOTE::

            The files are generated, not copied. Therefore, we cannot
            use ``data_files`` for this.
        """
        from sage.repl.ipython_kernel.install import SageKernelSpec
        # Jupyter packages typically use the data_files option to
        # setup() to install kernels and nbextensions. So we should use
        # the install_data directory for installing our Jupyter files.
        SageKernelSpec.update(prefix=self.install_data)
コード例 #4
0
 def install_kernel_spec(self):
     from sage.repl.ipython_kernel.install import SageKernelSpec
     SageKernelSpec.update()