Jupyter notebook not creating config files in the specified directories - jupyter-notebook

When I run jupyter notebook I get: Your file couldn’t be accessed It may have been moved, edited or deleted in chrome.
I checked jupyter --path and looked at the directories listed and most of them don't exist, I tried reinstalling and I'm getting the same issue.
I manually copied the url with the token and I was able to run jupyter notebook but I can't find the config, data or runtime.
Edit: I previously installed iJava but didn't reinstall but it appears when I run jupyter notebook making me think it didn't uninstall properly. Not sure how else to uninstall it considering I can't find the installation path.

Related

Unable to start kernel for jupyter notebooks in a specific directory

No problem in other directories. Is there an environmental variable or something else I need to erase?
Deleted cache file...
OK, I think I need be much clearer here.
First software:
MacOS Catalina 10.15.6
jupyter notebook 6.0.3
Python 3.8.3
IPython 7.16.1
jupyter notebook is installed and runs fine.
jupyter notebook runs just fine in any user directory on the computer except exactly one.
There is nothing obvious in this directory that shouldn't be there. An 'ls -al' shows nothing but some .py files.
I can create a jupyter notebook in this directory, but the kernel crashes and won't restart. I can rename the directory, rename the jupyter notebook, but the behavior persists beyond everything I have been able to reset including a cold computer restart. It is reproducible and happens every time.
This behavior is not seen in any other directory.
My question: are there environmental variables or caches stored not visibly in the directory (obviously) that are responsible for this incredibly annoying behavior and how can I reset them?
Problem solved: jupyter notebooks apparently uses some reserved names for local directory .py files when starting up the notebook. So far I've found that "string.py" and "decorator.py" cannot be in the startup directory unless they contain the expected data (looks like it needs to be related to some template info)
To start-up a kernel
You first activate your virtual environment:
For instance: conda activate vision
Second, you type jupyter notebook
as stated here

I tried to install jupyter notebook with Anaconda and it shows up an error

When I try to launch it through the Anaconda Navigator it just starts nothing. After that, i tried to install it through the Anaconda Prompt. But it shows that error:
InvalidArchiveError("Error with archive C:\\Users\\User Name\\.conda\\pkgs\\python_abi-3.8-1_cp38.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\User Name\\.conda\\pkgs\\python_abi-3.8-1_cp38.tar.bz2'")
InvalidArchiveError("Error with archive C:\\Users\\User Name\\.conda\\pkgs\\conda-4.8.3-py38h32f6830_2.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\User Name\\.conda\\pkgs\\conda-4.8.3-py38h32f6830_2.tar.bz2'")
InvalidArchiveError("Error with archive C:\\Users\\User Name\\.conda\\pkgs\\openssl-1.1.1g-he774522_0.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\User Name\\.conda\\pkgs\\openssl-1.1.1g-he774522_0.tar.bz2'")
Delete C:\Users\User Name\.conda directory and reinstall Anaconda. Maybe those files was corrupted during installation, and the best recommendation is to delete everything related to the previous installation.
I solved it by myself, I just start it over the conda shell

error loading jupyter notebook permission denied: ipynb

I was working in a jupyter notebook until it froze. It wouldn't save or shut down so I restarted my computer. I launched jupyter notebook from an anaconda prompt, my folder directory opens per usual. When i tried to open the notebook from before, I get an error loading screen that says permission denied: (name of notebook).ipynb. I hit close and the notebook shuts down.
I checked the folder permissions, I have full control. I can create a new ipynb without any issues. I can open other notebooks without any problem in the same folder. I tried to run a trust notebook through the anaconda prompt and it says the notebook is missing.
I need to recover this particular notebook as it has all my work. Help! Any ideas? Thanks in advance.
I work in the anaconda prompt in an environment other than the root, so this answer using sudo chmod doesn't work for me.
I had possibly the same problem. In my case the problem was that jupyter notebook must have crashed or had some problem whilst autosaving.
As a result, in the folder where the notebook is saved there's a temporary file called ".~nameofnotebook.ipynb".
This file didn't show up in jupyter notebook, but only in the explorer. I deleted the notebook file and renamed the temporary file to delete the ".~" prefix. Make sure to save a copy of the notebook file before deleting anything in case your problem is different.
The renamed temporary file opens fine and none of my data was lost.
Change the name of the file and you are good to go bro..

How to fix Jupyter consistent error when launching: "Could not open static file ' ' "

This didn't occur when I first started using Jupyter and not sure how this came about, but now whenever I launch Jupyter Notebook through my terminal or via Anaconda, I get a red error line saying "Could not open static file" and many yellow error lines related to static components. My Jupyter fails quite often now.
I've tried updating jupyter and changing the tornado version several times.
Simply installing "jupyter notebook"
I expect the code to run normally and terminal lines to be green.
screenshot of terminal here
I had the same issue. I tried to update or reinstall jupyterlab but it said that some of the packages were missing. I tried to install those packages but failed as they appeared interdependent on each other in a circular fashion (A->B->C->A).
I solved it by removing the Anaconda environment and recreating it. Luckily, I had saved the environment file when it was working file. So used it to recreate the environment again.
conda env remove --name myenv
conda env create -f environment.yaml

Jupyter Folder Full

I recently downloaded Anaconda on my Windows and am trying to use the Jupyter notebook. However, when I open Jupyter, the it seems to be full of odd files.
Odd Files
I have tried to change the Jupyter home directory by changing the "Start in" in the Jupyter file but the home directory remained unchanged.
Start in
There are two problems here. The first being that there are a large number of files and running the jupyter notebook makes my computer run slow. Second that when I try to add folders, I get the error that I do not have ownership to do so.
Simple fix. I was previously running jupyter from the command prompt but running it through the anaconda navigator fixed it.

Resources