xtian xtian - 1 year ago 86
Linux Question

How to reset iPython/Jupyter profile after upgrade to 'factory' defaults?

Returning to using iPython Notebooks after a year, [I installed my distro's version of Jupyter and now] Jupyter launches without menu bar. I'm guessing some of my old settings are carrying over. I'm guessing the fastest way to fix this is to .bak the old profile and create a new default.

First, initialized a Jupyter profile from instructions on how-to setup multiple Jupyter profiles:

$ jupyter notebook --generate-config

Then, [after further investigation] I created a new iPython profile,

$ ipython profile create foo

I followed found advise to renamed
. Then,

Still not reset to 'factory'. What am I missing?

UPDATE: [edit] plus, I reordered what were my actual rebuilding profiles steps--in case there is some propagation of settings, where the order matters (haha. Maybe I'm recreating the incorrect order...?)

Answer Source


I'm guessing there is a directed-ness to the Jupyter system (python, ipython, jupyter, a browser) where I have to reset parts in order.

I will take a guess and put these in a specific order. (Others can reorder if this turns out meaningful):

  1. Update python packages
  2. Created a new iPython profile: $ ipython profile create foo
  3. Rename profile_foo to profile_default
  4. Initialize a Jupyter profile: $ jupyter notebook --generate-config
  5. Clear the cache in your browser **:
    • Chrome (v52),
      • "Cookies and other site data"
      • "Cached images and files"
    • Firefox (v47),
      • "Offline web content and user data"
      • "Cached web content"

CAUTION: I'm assuming any existing iPython/Jupyter settings are not an issue, because the goal is to restore to factory, so to speak. And, I'm also assuming you're trying not to delete your saved passwords or bookmarks or history during a browser cache clearing step.

** I'm not clear which cache settings specifically include iPython/Jupyter data. These are only the settings I used and the problem was fixed.