![]() Please refer to dunovank‘s GitHub for reference. Instal the JupyterThemes package: In : !pip install jupyterthemes Good, the Notebook version is higher than 5.6.0 (lowest compatible version with JupyterThemes). This is how you can trick Jupyter in to thinking it is a command line.īefore we can commence we need to ensure that the Jupyter version is higher than In : !jupyter -version To install packages from a Jupyter Notebook, all you need to know is the exclaimation point operator. We will install the dark mode theme from the notebook. It’s horrible and white and you’d like to see some Dark Mode action! So you have started a new Jupyter Notebook session (Start Menu > Jupyter Notebook, or ‘jupyter notebook’ on the Anaconda prompt command line), and you are staring at a blank notebook. Save your new untitled python notebook something like: install.ipynb, because we will be using it to run some preliminary setup commands in the next section. Please consult this section in the Troubleshooting section at the end of this article. In the top right-hand corner, click New and in the drop-down box click Python 3 to create a new.Īt this point you may encounter a 500: Internal Server Error message. Navigate using the folders to any area where you want to run some code. ![]() We should be able to fire up a new Jupyter Notebook session: jupyter notebook Next, time up make sure you have upgraded pip: python -m pip install -upgrade pip The above upgrade should install the following two vital packages pip install msgpack I hadn’t upgraded in a while, so I opened up Anaconda Prompt and ran: pip install -upgrade notebook -user This blog assumes that you are using Anaconda package manager for your Python packages in Windows 10. Obviously you have to have these installed, and matplotlib so we can chart some stuff. It’s a bit cringeworthy as I like to do everything on the command line and safely within virtual environments, but since this is just Windows, meh, whatever.įirst some requirements. In the end, I eventually uninstalled all my attempts, started a fresh Jupyter Notebook session and installed everything from the notebook. Furthermore, it also uses IPython, a rich toolkit shell for base Python, and this is installed somewhere just as deep and just as cryptic. It turns out that Anaconda likes to create its own Python environment buried deep within the user’s roamin appdata (took me forever to find this). It seemed Jupyter Notebook was running off a different Python environment. However, I was quickly realising that since I had then installed Jupyter Notebook as part of the Anaconda Package, that my pip installs and updates to various packages where not being picked up by my notebook. This being the same environment that my Windows System Environment PATH variable is pointing to, and the same environment that I knew I had installed Python 3.7 to some months ago. I began as I usually do on a Linux machine running virtual python environments, and that is to command-line in to Python environment using Hyper in Windows. Yet the desire to have my Jupyter Notebooks look like this… Fig 1 – Jupyter Notebook dark theme, courtesy of dunovank’s Jupyter-themes github. ![]() My quest to see if I could get Dark Mode working for Jupyter Notebook on a 64-bit Windows 10 machine ended up costing me 3 nights.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |