Code Monkey home page Code Monkey logo

Comments (6)

SylvainCorlay avatar SylvainCorlay commented on June 12, 2024
  • enabling the extension with --sys-prefix should require the same privileges as the pip install.
  • indeed it should create a directory in sys.prefix
  • if your sys-prefix is a subdirectory of home, these should not require sudo privileges

I don't know what is going on here. What is the os exactly?

from jupyter_core.

jdemeyer avatar jdemeyer commented on June 12, 2024

indeed it should create a directory in sys.prefix

Which it does correctly. However, it additionally does something in $HOME.

if your sys-prefix is a subdirectory of home, these should not require sudo privileges

sys.prefix is not inside $HOME in this case. This issue is for the situation where I have access to sys.prefix but not to $HOME. You could correctly argue that this is an unusual situation. Still, when installing stuff as root I don't want Jupyter to create /root/.jupyter.

What is the os exactly?

Linux sage4 3.2.1-gentoo-r2 #15 SMP Tue May 15 10:40:50 CEST 2012 x86_64 Intel(R) Xeon(R) CPU X5660 @ 2.80GHz GenuineIntel GNU/Linux

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024
  File "/home/worker/sage-patchbot/local/lib/python2.7/site-packages/jupyter_core/application.py", line 243, in initialize
    self.migrate_config()

It's the base Jupyter application trying to migrate IPython config to Jupyter. It will skip this if either:

  1. ~/.jupyter/migrated exists, or
  2. ~/.ipython does not exist

You could also set JUPYTER_CONFIG_DIR to a writeable scratch directory to have it operate there instead.

from jupyter_core.

jdemeyer avatar jdemeyer commented on June 12, 2024

It will skip this if either:

~/.ipython does not exist

No, it does not. In my case, $HOME/.ipython does not exist. In fact, $HOME is almost empty (containing a hand-picked minimal set of things that I need).

from jupyter_core.

kiwifb avatar kiwifb commented on June 12, 2024

But since I am guessing you are talking about a sagemath install you may have ~/.sage/ipython and the variable IPYTHONDIR points there in your environment.

from jupyter_core.

ivanov avatar ivanov commented on June 12, 2024

closing this due to inactivity,
Happy hacking! :bowtie:

from jupyter_core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.