I have installed both jupyter-kite, jupyter-lsp and the corresponding plug-in successfully, but none of them are working properly。 - jupyter-lab

1 Running environment
OS: windows 10
Use the base virtual environment provided by conda
jupyterlab: 3.0.14
jupyterlab-kite: 2.0.2
jupyterlab-lsp: 1.2.0
2 Problem description
The image of pulg-in installed
The image of status of jupyter lab
The kite desktop is running, but the kite icon is not displayed in the status bar of the lab. lsp is displayed correctly.
But neither of them work properly, provide code completion.
3 Methods that have been tried
Remove build_config.json from Anaconda3\share\jupyter\lab\settings.
Reinstall jupyterlab, kite, lsp.
jupyter lab clean/build
Thank you for your attention!!

Related

jupyter labs stopped importing packages from virtual environment

I'm using Jupyter Labs with a virtual environment. It previously recognized the environment and correctly installed the packages. A few days ago, it stopped importing some of the packages, although neither the virtual environment nor the kernel was changed.
The packages are pandas and transformers, and I can check that they're installed by running conda list after the environment is activated. I'm getting the error "module not found" in Juypter.
I've tried the following but I still get the error:
Stopped the session from the command line and restarted Jupyter
Tried a different virtual environment
Tried switching to a kernel based on the new environment
Read the documentation from JuypterLabs on troubleshooting but there are no new files.
However, the packages will install when I run commands directly from the terminal instead of from Juypter. I used conda to install all the packages, and when I run the jupyter --paths command it appears that everything is in order.
I'm not sure what the error is that's causing this behavior, or how to fix it. I'm using a Mac. Thanks in advance.

Jupyter not working in VSCode Virtual Envirronemnt

I am new to jupyter and right from start I am trying to run it in VSCode and that too with a virtual environment. I hope that is not too much for you guys.
So here are steps I did;
I installed python and vscode
Added Paths in windows and all virtual environment things work fine
For data processing I created new virtual environment 'DataProcessingVenv'
I opened this venv in Terminal in VSCode and installed Pandas
I did pip install Jupyter
I did pip install ipykernel
next did ipython kernel install --user --name=DataProcessingVenv
In VSCode I created new notebook
pressed Ctrl+Shift+P and selected interpreter as /DataProcessingVenv/Scripts/Python.exe
Now I am trying to read a csv present in same fodler where notebook is present but somehow it is not working. I really don't know what is wrong and where, even don't know if I have provided all required info to solve the issue. Please guide me it some more info is required or if I can do something to solve the issue. I am attaching the current image in VSCode with error at the end.
So at the end the solution was simple. But it took time to learn. I just had to run all previous cells in Jupyter to make the current cell work.

Jupyter Notebook's RISE Missing Slideshow Button

I followed the instructions on installing RISE for Jupyter notebook with Anaconda (conda) but the "Enter/Exit RISE Slideshow" button never showed in the toolbar.
I followed the recommendations on solving the problem in the two closed RISE issues (#137, #275), but with no luck. I updated Jupyter to the latest version, started a new notebook, hard refreshed the browser page, reinstalled Rise and still no button.
I also saw this SO question, which is different from my case since I never saw the button, and I do not have nbextensions to begin with. Still, their recommendation did not work.
For practical reasons, I cannot have a separate environment just for RISE and presentation making.
I'm having the same problem on two machines, with different operating systems and different Conda packages, so it may be a RISE package problem. On one of the machines, I have:
Google Chrome 66.0.3359.117 (64-bit)
conda 4.5.1 with python 3.6.4
jupyter 1.0.0
jupyter_core 4.3.0
notebook 5.0.0
rise 5.2.0 py36_0 damianavila82
MacOS High Sierra (10.13.4)
My conda packages seem to be in good shape and without missing dependencies too.
$ jupyter nbextension list
Known nbextensions:
config dir: /Users/welshamy/Applications/anaconda3/etc/jupyter/nbconfig
notebook section
jupyter-js-widgets/extension enabled
- Validating: OK
rise/main enabled
- Validating: OK
This is a package compatibility issue. I solved the problem by doing the following:
Upgrade conda packages from the command line:
$ conda update --all
Restart jupyter-notebook session.
Restart web browser.
Open a new notebook.
Done.
Just restart the browser
if not create a new notebook

Anaconda only comes with anaconda prompt

I used to have the whole anaconda package on my Windows 10 computer (an HP Envy) until recently, Windows 10 updated and the update caused problems so I restored the previous version of windows (keep in mind, I installed Anaconda about 3 updates ago so restoring should not have caused a problem). A few days later, I tried to use Jupyter but "jupyter notebook" no longer launched Jupyter when typed into PowerShell. I tried uninstalling and reinstalling with all different preferences (i.e. me only, all users, PATH, no PATH, etc.) but it still installs as only the anaconda prompt. When I type conda --version in PowerShell, my error says "The term conda is not recognized" ...
Does anyone have any suggestions? I really need to use Jupyter. Thanks!

Jupyter notebook will not open from command prompt

I am trying to work with Jupyter notebook on Windows 10 (64-bit). I downloaded Anaconda3 5.0.1. Now I should be able to open the jupyter notebook from the command prompt by typing jupyter notebook. However I get the following error:
The only way I am able to open jupyter notebook is from the Anaconda navigator. However, I would like to change the directory from which the notebook opens and none of the solutions here How to change the Jupyter start-up folder work if I cannot open jupyther from the command prompt. I have already tried uninstalling and reinstalling anaconda, but that did not change anything.
This error is because you didn't set environment after installing Anaconda.
Go through following steps to solve this issue
Search in start "Edit the system environment variable" and open it.
Click environment variables button
Go to there and add 2 directory path where you installed Anaconda
i.e. 1. C:\ProgramData\Anaconda3
2. C:\ProgramData\Anaconda3\Scripts
Hope this will solve your error :)
If you have:
Jupiter installed directly from Python (not anaconda)
PATH already configured (in case of not, you can do it manually from Windows system advanced menu)
try with: py -m jupyter notebook
It should work ;)

Resources