Can't see my project in Jupiter notebook anymore - jupyter-notebook

I'm trying to use Jupyter notebook from my windows 10 machine but, when I start it, I get this screen where I can't see my project anymore, I cant navigate anywhere nor I can create any new project. The weird thing is that up to yesterday it was working fine and I don't recall installing/uninstalling or changing anything.
Anyone can help me get through it?

I had the same problem.
It is a bug in the latest update to jupyter notebooks. The workaround is to downgrade back to the most recent working copy. I really wanted a way that used conda and not pip to downgrade, and I found an excellent solution.
Anaconda keeps an archive of previous releases of the entire system (conda + jupyter + spyder + ...). You can find the archive here:
https://repo.continuum.io/archive/
For me, the version that worked was the July 2019 release
https://repo.continuum.io/archive/Anaconda3-2019.07-Windows-x86_64.exe
First you must uninstall Anaconda completely and then install the archived version.

Related

Issues installing Jupyter Lab Git extension: Mismatched front/backend versions

Here are my steps for installing Jupyter Lab and the Git extension, and then trying to troubleshoot the extension version mismatch problem:
Specs: MacOS Mojave 10.14.6, Jupyter Lab 3.0.5
1. I installed Jupyter Lab using pip3 install jupyterlab
2. I installed the Jupyter Lab Git extension directly from Jupyter Lab's Widgets Manager:
3. After doing so I received additional instructions:
4. I clicked 'OK' and then ran pip3 install jupyterlab-git
5. Back in Jupyter Lab, it said a build was needed to include the latest changes, so I selected 'Rebuild'
6. The build was successful, and I clicked on 'Save and Reload'
7. Upon reloading, I received the following message:
8. I followed the instructions and ran pip3 install --upgrade jupyterlab-git
9. I went back to Jupyter Lab and clicked "Dismiss" on the message.
10. I closed and reopened Jupyter Lab via terminal. After reopening, the same "failed to load" message appeared.
11. I then found this link troubleshooting a similar issue.
12. I followed the advice by running all of the below commands (with pip3, and fixing spelling errors):
13. The user then suggests the following to make sure everything worked OK. So I closed Jupyter Lab again, and ran all of the following:
14. Running jupyter serverextension list I get the following, which I think looks OK:
15. Then I ran pip3 list and get back: jupyterlab-git 0.23.3 (so Git extension version 0.23.3, which according to the GitHub extension page at the time of me writing this is the most current (non-beta) version).
16. Then I ran jupyter labextension list and see nothing related to the Git extension, which is not expected per the above user's screenshots (it's supposed to show the Git Extension here):
17. Now here's one last thing: When I go back and install the Git extension via Jupyter Lab's Extension Manager (like I had done initially), and then I run jupyter labextension list again, I see that the Git extension is the "pre-release" version v0.30.0b1, which would likely be why way back in step 7 I got the error message that the frontend and backend extensions did not match.
And here's where I'm stuck. I can't seem to get these two extension installations to match (or to ever have the extension icon show up in the side panel).
And around and around I go...
EDIT: Possible solution.
After reading my own question here, I thought maybe I should try to install the "pre-release" Git extension version to match the other version, and that seems to have worked. I just didn't think it was best practice to use "pre-release" or beta versions, so that had not occurred to me until just now. So I'm not going to "solve" my own question here, because I'm just not sure this is the best solution... But is it?
I ran this: pip3 install jupyterlab-git==0.30.0b1 and now I'm no longer seeing any version mismatch errors, and the Git extension icon is finally showing up in the side panel.
They versions need to match as per #779
What worked for me was:
pip install --upgrade --pre jupyterlab-git

Jupyter notebook looks for modules in the wrong place

I use Anaconda to start Jupyter notebook.
However, since this week, I get the error that Jupyter cannot find Mathplotlib, but it is look in the wrong directory, I think.
I think it should look in a directory under'Anaconda3'? The problems started when I installed Python again, I think. It's as if there are two versions installled and Jupiter Notebook cannot find my libraries anymore.
Reinstalling Anaconda navigator may fix the issue!

Multiple versions of R installed but can't locate or remove the old one

I have downloaded and installed R.
I see it here in Applications folder (I am on a Mac with Yosemite):
Fine. I can launch R.app and indeed, yes, I am running the version I want, which is 3.2.2:
So far so good. I can even open up RStudio and see that I am indeed running 3.2.2!
So after all this, I simply go to my terminal, type
r
and turns out I am running 3.1.1!
I understand the old user of my work computer probably had installed this older version.
So here's what I'm wondering:
If I just installed R.app correctly, WHY is this old version still living on my computer, and how do I get rid of it?
If this is some sort of $PATH thing, WHY doesn't the most obvious location for an app, the Applications folder, get checked for the existence of R?
Thanks.
UPDATE
Turns out the old version of R has been installed by homebrew.
Typing which r in your terminal will give you where the shell thinks R is. Then, you need only uninstall it from that location.
Since we've determined it's homebrew, all you need to do now is brew unlink r; rm -Rf /usr/local/Cellar/r/3.1.1 and you should be golden after you rehash in your shell.
It worked because you installed it using homebrew. To remove it from the system, you must first unlink it and then remove it from the system.

RStudio empty on startup - No windows, no menus, no rendering

When I start RStudio, none of the windows inside the main frame come up, and none of the menu options display menu options when clicked. It's just an blank page.
It feels like some kind of graphics rendering or window management problem.
I'm running Windows 7. I have the latest version of R, which is 3.1.1. I have the latest RStudio, which is 98.1062.
How to fix it?
Reset the RStudio state. Do this:
Close RStudio if open.
Go to this directory: %localappdata%\RStudio-Desktop
Rename that directory as a type of backup.
Start RStudio.
RStudio will see the configuration directory is missing and regenerate it with correct values.
Everything should work after that.
Other threads I found helpful here are:
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-s-State
https://support.rstudio.com/hc/communities/public/questions/200666647-RStudio-096-16-Windows-7-gives-empty-screen?locale=en-us
Thanks!
Renaming the RStudio state by renaming %localappdata%\RStudio-Desktop did not work for me. However i made it work by renaming another config folder in %appdata% instead.
Close RStudio
Go to this directory: %appdata%\RStudio
Rename the folder
Restart RStudio
I faced the same issue when I downgraded my version of R.
I did try the above solutions. However, it didn't work for me.
After some googling, I found out that the issue was because now I had a different version of R installed. Here's how you can choose the version of R and rectify the issue.
Navigate to the RStudio installation folder. (C:\Program Files\RStudio\bin)
Press and hold Control Key
Double click on rstudio.exe
Choose a specific version of R (whichever you want to work with)
Click OK and RStudio should open without any issues.
NB: I use 64bit Windows 8.1.
I had the same issue and I almost gave up about solving it but then I found a suggestion that GitHub might be the problem. I am not sure how that is happening but the minute I uninstalled GitHub and re-launched Rstudio, it worked perfectly as nothing happened!? Here is the link for where I found the suggestion on Rstudio community page: (https://support.rstudio.com/hc/communities/public/questions/200983187-R-studio-0-98-797-for-mac-opens-as-blank-white-page)
I had the same problem and figured out that for some reason R was blocked on the step of loading my library from a website (I added it to Rprofile for auto-load). You can test the following:
1) Try to run just R console, not RStudio, and then click on blank space - normally some information should appear
2) Try to launch without network connection
On a Mac (Running Yosemite 10.10.3) this is what worked for me:
Move/Rename ~/.rstudio-desktop
(Many responses have mentioned this, but this by itself didn't help.)
Then I shutdown my Mac and restarted it. RStudio worked when I logged back in.
Before that, I tried every one of the steps mentioned here and in many other links, including re-downloading R and RStudio, but unfortunately none of those steps helped in my case.
Search this documentation for 'Blank GUI'.
This is what I found which worked for me:
In Windows Explorer, go to C:\Users\currentUser\AppData\Roaming\RStudio.
Delete the Desktop.ini file
This technique forces RStudio to refresh and default to open-source R as the engine
Same issue I faced so I unistalled the windows installer and downloaded zip version from this link https://www.rstudio.com/products/rstudio/download/
Unziped It and pasted it into c drive and created shortcut from Rstudio/bin/rstudio.exe file.
Working properly after that no issue. In windows installer checked that r session is not working due to an missing dll.
So try to install from ZIP
I had the same problem like Thomas
When I start RStudio, none on the windows inside the main frame come up, and none of the menu options display menu options when clicked. It's just an blank page.
My problem was, that i uninstalled R because is thought RStudio will work on its own.
So i uninstalled RStudio and deleting every existing file which was created by R or RStudio.
In the next step i installed RStudio again.
It was asking for a Version of R (which i dont had in this state). So i installed R again and everything is working fine now. I hope this helps
I had a slight variation of the problem that might be of interest. I had set up an aliases.cmd to run my cygwin bash shell automatically upon launch of a cmd terminal as per:
https://superuser.com/questions/302194/automatically-executing-commands-when-a-command-prompt-is-opened
What RStudio was doing was launching a few cmd windows in the background to (I assume) populate each pane and the console.
This was triggering a bash shell which wasn't returning and was hanging RStudio.
If you have this issue you can just manually kill the sub bash terminals spawned by cmd via ProcessExplorer/TaskManager and RStudio will continue to launch normally.
If anyone else has set anything to launch automatically on init of a cmd terminal then this could interfere in the same way with RStudio.
The RStudio devs could probably fix this behind the scenes by changing the way they spawn cmd terminals in the gui.
I had a similar problem. After trying the options above with no luck, I uninstalled Rx64 3.5.0 and installed an older version, R x64 3.2.2.
Rstudio then worked perfect.

RStudio version control timestamps incorrect by 4 hours

I just setup version control in RStudio (letting RStudio add a Git repository to my existing RStudio project). However, when I use RStudio's Tools->Version Control->History functionality, the timestamps listed for my commits are 4 hours ahead of what they should be. But if I run git log from the terminal the correct timestamps are shown, so it doesn't seem to be an issue with Git. Any idea what might be causing this? I'm using the newest version of RStudio on a Mac.

Resources