-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spyder notebook not visible under panes tab #435
Comments
Dependencies Mandatory:atomicwrites >=1.2.0 : 1.4.1 (OK) Optional:cython >=0.21 : 0.29.36 (OK) |
I have a similar problem. I installed it. It was there and work. But just now I opened Sypder, and the Notebook no longer shows up. |
I tried to reinstall the plugin, but I get the message "All requested packages already installed." But after quitting and starting Spyder several times, the notebook is still not showing up in the panes menus. |
@touradnik9 @jimclay75051 It looks like something went wrong when installing the Spyder notebook plugin, but I don't know what. Maybe it helps if I get some more information. Can you please try the following? Firstly, go to Secondly, in Spyder, click on the menu item
|
Here are the results from the two searches. Plus, I add a few other screen shots so you can see what I see.
It seems like the notebook is installed, but for some reason Spyder is note seeing it. The problem is on my desktop computer. On my laptop computer it's working just fine.
[cid:b55acb49-2ffe-4f3c-8296-6b11c7cc1790]
[cid:9d789cad-8736-4e6d-b757-dbc4feb408a0]
[cid:3c62f07e-4395-4762-96d8-797b2e6ac98a]
[cid:ab61758b-cd15-43dd-893d-696538417051]
From: Jitse Niesen ***@***.***>
Sent: Wednesday, July 19, 2023 7:19 AM
To: spyder-ide/spyder-notebook ***@***.***>
Cc: jimclay75051 ***@***.***>; Mention ***@***.***>
Subject: Re: [spyder-ide/spyder-notebook] Spyder notebook not visible under panes tab (Issue #435)
@touradnik9<https://github.com/touradnik9> @jimclay75051<https://github.com/jimclay75051> It looks like something went wrong when installing the Spyder notebook plugin, but I don't know what. Maybe it helps if I get some more information. Can you please try the following?
Firstly, go to Tools > Preferences > Python interpreter and select the first option: "Default (i.e. the same as Spyder's)". Then open a new console with Consoles > New console (default settings) and give the command import spyder_notebook in the new console. Check that this does not give an error. It is fine if there is a message starting with "No QCoreApplication instance found", as in the picture. If you changed the Python interpreter in the Preferences, then you will probably want to change it back to what you had before.
[console-notebook]<https://user-images.githubusercontent.com/7941918/254568389-e5a8aed2-966e-4a1d-89d9-0f0fd4022125.png>
Secondly, in Spyder, click on the menu item File > Restart in debug mode and then select Verbose. After Spyder has restarted, click on the menu item Tools > Debug log > spyder-debug.log. This will open the debug log file in the editor. In the file, search for "spyder_notebook". This should find a line with "Registering plugin notebook". Are there any error messages around that line? Please copy that line and the first few lines after it. This is what it looks like for me (you may have to scroll the text to the right to see everything):
2023-07-19 13:11:01,968 [DEBUG] [spyder.api.plugin_registration.registry] -> Registering plugin notebook - <class 'spyder_notebook.notebookplugin.NotebookPlugin'>
2023-07-19 13:11:01,968 [DEBUG] [spyder.api.plugin_registration.mixins] -> Method on_ipyconsole_available is watching plugin ipython_console
2023-07-19 13:11:01,968 [DEBUG] [spyder.api.plugin_registration.mixins] -> Method on_ipyconsole_teardown will handle plugin teardown for ipython_console
2023-07-19 13:11:01,968 [DEBUG] [spyder.api.plugin_registration.mixins] -> Method on_preferences_available is watching plugin preferences
2023-07-19 13:11:01,969 [DEBUG] [spyder.api.plugin_registration.mixins] -> Method on_preferences_teardown will handle plugin teardown for preferences
—
Reply to this email directly, view it on GitHub<#435 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHFDZMR2FXGE6AFDZ422QLTXQ7GGDANCNFSM6AAAAAA2LAV2EE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@jimclay75051 Unfortunately, I can't see your pictures. GitHub does not handle images in emails. Any change that you can put the pictures in a message on the GitHub website? |
@jimclay75051 Like you say, you have the notebook plugin installed but Spyder does not seem to see it. Perhaps you installed the notebook plugin in one environment and Spyder in another. This happens if you used Spyder's standalone installer, as described in the section Standalone Installers in our installation guide. These standalone installers unfortunately do not work with plugins (yet). I should have said this earlier ... We recommend using one of the conda-based distributions if you want to run Spyder with plugins. If that does not help, then please do the following:
The first command gives a list of conda environments and their paths. In your picture, you have the "base" environment activated and the path will be something like The second command should give the location of the Python interpreter that runs Spyder and hopefully we can use it to find the environment that Spyder is installed in. I don't have a Windows computer at the moment to test, but I think this should print something like |
I found out that when I type Spyder into the search bar, there are 2 options: When the app that is only "Spyder" is loaded, then the notebook option appears under panes. If it is the spyder-env option, then the notebook option does not appear under panes. Any idea how I can have the notebook option appear under the spyder-env option? Thanks! |
Also, in the notebook, does it have the same assist capability in the editor, like when you use a module and a list of options appear? Thanks! |
@touradnik9 I think that the "Spyder (spyder-env)" option refers to the version of Spyder that is installed in an environment called "spyder-env". The instructions in the section Conda-based distributions in the Spyder installation guide will in fact get you in that situation. You need to install the spyder-notebook plugin in the spyder-env environment in order to make the notebook pane available in the version of Spyder that you get when you use the "Spyder (spyder-env)" option. You can do this as follows:
As an aside, an environment in this setting refers to an independent collection of Python and other packages. The idea is that by using separate environments, installing or upgrading a package in one environment will not interfere with Spyder in a different environment. Search for "conda environment" for more information. The notebook should have the same assist capability as in the editor. However, the system behind this is quite complicated, it does not always work and I don't really understand it. |
Description of your problem
What steps will reproduce the problem?
installed Spyder, then the plugin. The notebook plugin is not visible under panes
What is the expected output? What do you see instead?
To be able to use the plugin notebook
Please provide any additional information below (stack trace, screenshots, a gif, etc)
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
The text was updated successfully, but these errors were encountered: