How to install visual debugger for JupyterLab? - windows

I am working on Windows 10. I am trying to install the visual debugger on my Jupyter Notebook. I followed the protocols described at https://blog.jupyter.org/a-visual-debugger-for-jupyter-914e61716559. The following is the install commands:
jupyter labextension install #jupyterlab/debugger
conda install xeus-python -c conda-forge
When I tried to open xpython to activate debugger, I am getting the following error displayed on a popup box.
xpython.exe - System Error
The code execution cannot proceed because libzmq-mt-4_3_1.dll was not found. Reinstalling the program may fix this problem.
The only way to remove the popup box is to reboot the system. Is there any solution to properly installing the debugger? The Jupyter Lab says the latest version comes with the prebuilt debugger. Even there I have the same dll missing error message.

Related

Can Jupyter Notebook run on Windows 10

I installed Jupyter Notebook on Windows 10. But I got an error when launching it in Visual Studio Code as:
jupyter : The term 'jupyter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
After searching online, I decided to install Anaconda first and run Jupyter from it. But launching it from Anaconda was directed to a web address. It looks like Jupyter is only a web application.
I wonder if it is possible to run the Jupyter Notebook as a desktop application on Windows.
There is a JupyterLab Desktop App, see here and here. I don't know how old of a version of Windows works for it.
Rest was built from discussion in comments:
On Jupyter with VS Code:
Jupyter itself works with VScode to run Jupyter notebooks in VScode. You wouldn't need the JupyterLab Desktop App in that case. You do need Jupyter though. See here if you are interested in using Jupyter notebooks in VSCode.
On installing packages that worked before installed Anaconda:
The easiest solution would be to reinstall them. It is possible you could add the already installed ones to your path, but if you have room it is easiest to keep your Anaconda installed stuff where it is and separate from what you had. The easiest way to sort where to install them is to let Jupyter handle it. For example, if you want to work with Pandas in a notebook, in that notebook run %conda install -c anaconda pandas, based on here and the magic install command. For the packages that conda cannot install, and only for those, use %pip install <package_name>.
You can delete the install commands out of the notebook after if you want. You may just want to comment them out so you remember. For the short term you are fine re-running the commands because if the package is already installed by conda or pip it won't get reinstalled; however, if the package gets a new release and you aren't specifying versions, you'll get the latest when that install command next runs and if there is an error or incompatibility, then you'll have caused yourself an issue you could have avoided.

Spyder Debugger Crashes

Mac OS 12.2.1
Anaconda Navigator 2.1.2
Spyder 5.1.5
I’ve been to the Spyder Web site, performed what was described as “Basic First-Aid” as well as “Emergency CPR” without satisfactory resolution. The first symptom was that the debugger just hung. After performing the suggested fixes (updating Anaconda, Spyder, and Spyder dependencies, system re-boot, etc.), the debugger now reports: “OperationalError: attempt to write a readonly database.”
I’m at my wits’ end. I’m wondering if I need to completely re-install all of Anaconda. Is there a “best way” to do this? Is there a web site that I can consult that will demonstrate how to get a fresh installation?
ADDENDUM
So, I cleaned Anaconda from my machine (what a horrific experience!) and re-installed it, using conda for both tasks. I started Anaconda and then launched Spyder. Then I loaded one of my modules, set a brake-point in the editor, and boom! The Spyder debugger worked. However, the new installation of Anaconda was lacking a particular library: pyreadstat. I used conda to get this library. I then launched Anaconda again, saw that pyreadstat was now in the base(root) environment. I ran one of my packages (8 modules mainly consisting of numpy and itertools manipulations of N-D arrays) and everything worked, including calls to pyreadstat to read SAS datasets. Okay, everything seemed copacetic. So, I tried to debug one of my modules and the debugger failed again, returning the message: “OperationalError: attempt to write a readonly database.” WTF! Is conda trashing Spyder’s debugger in some mysterious way? I don’t get it. Why would pyreadstat affect Spyder. It must be conda.
To answer my own question, in the Mac Terminal app, I typed:
--> conda install -c conda-forge spyder=5.2.2
Boom! All is well.
I had the same problem on Windows10 with spyder version 5.1.5.
For me, updating Spyder to the newest version as suggested here worked as well. This can be done in two ways:
Console
Open the console or, if you're working on Windows, the Anaconda Prompt and type the following commands in order to first uninstall spyder, and then re-install the newest version (just updating didn't work for me).
conda remove -n myenv spyder
conda install -n myenv -c conda-forge spyder
The first command, remove, uninstalls spyder in the virtualenv called 'myenv'. If you don't use virtualenvs, just leave the -n myenv aside.
The second command, install installs spyder from the third-party channel conda-forge instead of the official channel defaults. This option is necessary in order to install a spyder version newer than 5.1.5
Anaconda Navigator
Uninstall Spyder: In the "Home" tab, select the correct virtual environment in the "Applications on" dropdown menu. Then click on the gear symbol in the upper right corner of the spyder tile and select "remove application".
Add conda-forge to your environment's channels: This is nicely described at the bottom of this page.
Install spyder again, in the way you did it the first time.
Click again on the gear on the spyder tile, choose "install specific version" in order to update to the newest version. Now, versions newer than 5.1.5 should be available.

Error on Anaconda 5.3 while installing RStudio , saying offline mode

I downloaded Anaconda 5.3 and am trying to Install RStudio in it. I get the below error always after upgrading.
"Some of the functionality of Anaconda Navigator will be limited in offline mode."
"Installation and upgrade of packages will be subject to the packages currently available on your package cache."
Even if the internet is connected, I get the same error which didnt happen with previous version. Does anyone know how to overcome this? Please advise.
Btw, RCran and RStudio are not approved software and hence I am trying to use the one through Anaconda IDE.
Same as you here, there is an issue related https://github.com/ContinuumIO/anaconda-issues/issues/10176.
While anaconda-navigator having this problem, you can still install packages through anaconda prompt.
open anaconda prompt in your start menu
type conda install rstudio

error while installing Python 2.7.12 "There is a problem with this window installer package"

I want to install Python 2.7.12 but It shows following error.
There is a problem with this window installer package. A program required for this install to complete could not be run.
I saw one youtube video (https://www.youtube.com/watch?v=KikshWVWhzg) and so I provide full access to system and User. Even then, the same problem occurs.
How to solve this problem?
I solved this problem by my own.
Actually what happens is: In past, I installed Python 2.7.10 and by mistake, I deleted python27 file from C drive. But python remains installed in computer and when I tried to uninstall it, It shows the same error as above. So to uninstall this,
first I download similar python file (python2.7.10ci) version and try to install it. And you see it got installed. Due to this a file get generated in C drive with name python27 and now I can uninstalled python which I installed a long time back.
After uninstalling old python2.7.10, I right click on python 2.7.10ci (in control panel ) and choose repair. Due to this again a file generated with python27 and now I uninstalled this too easily.
After doing all this, I downloaded python 2.7.12 and try to install. And I able to install this without any error.

How do I resolve "Failed to create process" in Anaconda?

I downloaded Anaconda 3.6, but when I tried "conda update conda" or tried opening jupyter notebook, it shows Failed to create process. Please help!
I have uninstalled 64-bit software, removed shortcuts, installed 32-bit software and ran below command at the Anaconda prompt.
(base) PS C:\anaconda3\Scripts> conda install -c anaconda anaconda-navigator
Once updates done, navigator client opened with no issues.

Resources