I installed a buggy package in Atom which has been crashing the editor repeatedly. So, I went into Atom Settings to remove it, but just out of curiousity I clicked the "Open Config Folder" button beforehand which opened an empty window and dev tools alongside:
Atom subsequently crashed (probably because of the buggy package I was about to install) and now when I open Atom, I only see the above window and nothing else, even if I open it from the "Open with Atom" context menu from any folder. So, now I'm stuck with just this window and no actual Atom Editor.
I tried re-installing Atom and it did not solve the issue. I checked the "Atom" menu available in that window and it only gives me basic options: "Check for Update", "Reload", "Close Window", "Toggle Dev Tools", and "Quit", none of which can get me back to the main editor window.
Anybody seen this before or know how to break out of it?
I got the same problem but on Ubuntu. I tried apt-get --reinstall and purge but both did not work.
Turns out it was just no read permissions for /home/username/.atom/
All I did to fix it was:
sudo chmod 777 -R '/home/username/.atom'
I found a quick solution for this. The Atom uses a BLOB file to store data from the last user session and re-open that when Atom is restarted. By removing that file, Atom restarted at it's default state.
You can find that file on a Windows machine here:
C:\Users\[Username]\.atom\blob-store
Just delete, or rename, the file BLOB. Then, just open up Atom and you should be good to go.
Try this:
Close Atom
Remove C:\Users\[Username]\.atom\storage\application.json
Start Atom
Related
I recently installed nbextensions in my conda environment to add the ability to add a Table of Contents (toc2) to my notebooks. But I did this while having a jupyter notebook open and after installing the extension, changes in the extension settings didn't reflect on the notebook I had open during installation while it did on the others that weren't.
I tried shutting down and restarting the kernel, restarting the computer, and uninstalling and re-installing nbextensions again (following these instructions on a github ticket). None of these things rectified the issue with the notebook that was open. A duplicate of the notebook inherits its problems.
An interesting thing to note is that after reinstalling nbextensions, which was my last attempt, changes of the settings from the first install were held over instead of going back to default (ie color settings in nbextensions being the distinct colors I had switched them to before the uninstall). I'm not sure if I fully uninstalled nbextensions or if it's really possible. And after the re-install, further changes in the settings in the second go-around didn't reflect on any notebooks afterwards, like removing the sidebar toc setting after selecting it the first time, the sidebar remains in certain notebooks.
I'm not sure what's going on but:
1.) Is there a way to get the settings changes to reflect on the notebook universally, particularly having a toc? Especially on the notebook that was open at the time of install?
2.) Is there a way to totally un-install nbextensions like it never existed on my machine so I can try this again?
Step 0 - Is this a problem with the Notebook metadata?
The toc2 module adds some metadata to the notebook.
Just in case this metadata is missing, has wrong values, or the defaults written make the ToC does not show up try this:
Open the notebook and select "Edit"->"Edit Notebook Metadata".
Remove the "toc":section if it exists an add this to the end of the metadata:
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"base_numbering": 1,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": true,
"toc_position": {
"height": "382px",
"width": "256px",
"left": "10px",
"top": "10px"
},
"toc_section_display": true,
"toc_window_display": true
}
Be careful not to remove any comma(,) after the closing } if exists ! This must be a valid JSON file.
After changing the metadata:
Clic on the "Edit" button
Save the notebook
Close the browser window
Annd open the notebook again.
You should see a floating TOC window.
If not, go to the next step.
Step 1 - Is this a Jupyter problem?
Check the jupyter_contrib_nbextensions is installed (pip freeze | grep jupyter_contrib_nbextensions).
Open jupyter and check there is a 'Nbextensions' tab next to the 'Clusters' tab on the home page.
Open the 'Nbclusters' tab and leave unchecked the ' disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, but can be useful to show for nbextension development)' box.
Now look for the 'Table of contents (2)' extension and enable it.
Now your should see the TOC when you open the notebook.
If not, go to the next step.
Step 2 - Is this a browser-related problem?
Looking at the toc2 extension soure we can see this is client-based based on Javascript code.
When you load the Jupyter notebook, the module main.js is added to the .js your browser runs and modifies some menu commands.
To discard we have caching issues, open Jupyter using with a 'fresh' browser.
This could be either:
Another browser (chrome, firefox, Edge..)
Or your 'normal' browser in incognito/InPrivate mode
With a 'clean' browser you should be able to open the notebook and see the navigation bar from the TOC extension.
What to do now:
If the Clean browser works, but the "normal" browser doesn't
clear cache in the normal browser and try again.
If the Clean browser does not work and Jupyter is running on your local machine.
We've hit a bug here.
Open your browser developer tools, open a ticket in github, and add the console output from developer tools.
If the Clear browser does not work and Jupyter is running on a remote machine
Do you use a proxy? or is your ISP using transparent caching for this page/parts of the page (last one is hard to assess).
Try running Jupyter in another port (with the --port option). That should fix he problem. Consider using https instead of http to avoid caching by intermediate network.
I had to delete my hard drive and reinstall R,Rstudio and Github on my Mac. When setting up version control I clicked browse to look for git executable. I see that I should have left it as the default /usr/bin/git. How can I get RStudio to reset to the default? I can't see to navigate to that folder.
You can find instructions for resetting RStudio's state here:
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State
In Jupyterlab, there is a text editor that we can open .py files, is it possible to also turn on tab completion, just like how it works in Notebook ?
By now, tab completion in the text editor of jupyter lab has been implemented in this pull request (see also discussion in this issue). However, for it to be working you need to open a console for the editor (right click in the editor window and select Create Console for Editor).
No, it is currently an open issue. https://github.com/jupyterlab/jupyterlab/issues/1276
The package jupyterlab-lsp now provides tab completion in the text editor. You need can install it from pip or conda, along with a language server for Python:
pip install jupyter-lsp
pip install jedi-language-server
I also needed to enable the server side extension:
jupyter server extension enable --user --py jupyter_lsp
And enabled #krassowski/jupyterlab-lsp and #krassowski/completion-theme via JupyterLab's extension GUI (the puzzle piece on the right hand side). Then I restarted JupyterLab, and completion worked (with Tab). I am not sure if all these steps are neccessary, it might depend on your environment.
I am unable to open my Atom Editor. It was working fine until yesterday, but don't know why it won't open today. No windows update or anything on my computer. I tried deleting the 'Storage' folder as mentioned in some online forums, doesn't help. Any suggestions? I am using Atom version 1.19.6.0.
If you're using MAC OS and have similar problem, try this:
Open Window tab
and then click Zoom.
Atom will sometime fail to open because of a bad configuration-file.
To better diagnose this on Windows (10), try running atom from a CMD window:
Open the task-manager and kill any instance of Atom that is listed there
Open a Command-window -
Ctrl+Esc > (type "command") > Enter
Go to where Atom is installed -
cd %USERPROFILE%/AppData/Local/atom/app-*
Run Atom -
atom.exe
If you see an error message at this point, it should help identify the problem.
If still not clear, you can try moving the main configuration-file,
which is in a different folder:
cd %USERPROFILE%/.atom/
rename config.cson config.SAVE.cson
Go to where Atom is installed (again) -
cd %USERPROFILE%/AppData/Local/atom/app-*
Run Atom -
atom.exe
Based on this answer on the Atom forum:
https://discuss.atom.io/t/atom-will-not-open-windows/47489
I experienced this issue when my Atom windows all suddenly resized to be so small I could not see or find them anywhere (some weird glitch with opening it from a full-screen window on an external display). I resolved it by command-tabbing (I think it's ctrl-tab on Windows, I forget) to my open atom application to bring up the application's menu bar, and then selecting Window > Zoom from the menu.
I am using Atom on Windows 10 64-bit, and had similar problems of installation and not running later.
You can do the following:
Empty Trash, and Temp and Prefetch folders.
Change the security and read only properties of the temp folder.
IMP > Disable antivirus and run atom it will work, later add the Atom app to exclusion list of your antivirus.
Open the task-manager and kill any instance of Atom that is listed there
Got to where Atom installed : Mine:> C:\Users\%userprofile%\AppData\Local\atom
See this Image
Go to Folder indicated in the picture and find atom.exe by scrolling through the folder and open it and make a shortcut to desktop and it will work.
I found that mv command is not builtin Windows cmd as suggested by Gonen. So following the idea of Gonen, a working solution can also be like:
In windows explorer type %USERPROFILE%/.atom/, or manually go to the path
(in my case): C:\Users\hussainazhar.atom. Of course, go to your drive path accordingly. Close Atom application if already opened.
Simply rename the config.cson to config.SAVE.cson
Open up the Atom and now you can go to the settings :)
All you simply need to do is go the main directly where the file is located and open the FIRST folder.
After opening it, there you will see atom file, double click on it and it will be opened successfully.
The atom Window is just minimized, it gives the impression of not openning, but it is actually opening, again is just minimized.
I was able to see the atom interface, by maximizing the window using the keyboard:
on windows, it normally is Alt+SpaceBar+x.
atom editor on mac osx related:
I did cmd-click on a hyperlink and got a popup (lost it before able to read),
and now my cmd-click to set multiple cursors is not working any more.
anybody can tell me how to reactivate multi-cursor by cmd-click again?
For a temporary fix:
open the console (you can use ctrl+shift+I shortcut, respectively alt+command+I shortcut on MacOS),
run atom.config.set('core.editor.multiCursorOnClick', true);.
Notes:
You might also want to take a look at your hyperclick or atom-ide-hyperclick package. In atom preferences, go to Settings and change the Trigger keys for MacOS to become command + click.
I've solved this issue by changing the trigger keys to shift+control+click, in atom-ide-ui, under the Hyperclick section.
found it finally ... it was hyperclick plugin which redefined cmd-click.
But I had hyperclick plugin installed for months, it never interrupted multi-cursor from working ...
anyway ... kind of rubber duck debugging ...
The hyperclick module is now part of the IDE module and having both hyperclick and IDE installed causes this problem, too. Deleting the old hyperclick module fixes it (the IDE module by itself does not seem to cause the problem).
Because of the hyperlink installed, Multi Cursor key is now CTRL + SHIFT + Mouse Click in windows. For me it's working.
You can try on Mac CMD + SHIFT + Mouse Click
If someone is facing the same issue on Linux, these methods helped me
Method 1
Navigate to /home/<Your Username>/.atom/
Find the config.cson file
Add the following lines to the file
"*":
core:
editor:
multiCursorOnClick: true
Save the file and start Atom
If this method does NOT work, follow this
Method 2
Uninstall Atom
Navigate to /home/<Your Username>/
Remove/Delete .atom directory
Reinstall Atom
Redo Method 1
It should work.
Hope it helps!