Open multiple jupyter notebook with different extension config - jupyter-notebook

I share a linux server user with my teammate, and we used the same jupyter notebook server together.
However recently I found some interesting plugins, so I created a new jupyter notebook directory ~/.my_jupyter, which is a copy of origin ~/.jupyter, and open jupyter notebook with config=/path/to/.my_jupyter/my_config.json then install some plugin by jupyter_contrib_nbextensions.
But when I enable a plugin in my jupyter, the other jupyter enable that plugin too. I found that new jupyter still reference the plugin status by origin .jupyter/nbconfig.
I am looking for a way to change nbconfig path just in my jupyter, hope someone can help me figure it out.
Thanks

Finally figure it out.
Create new tmux session and do following line in terminal:
export JUPYTER_CONFIG_DIR=/path/to/.my_jupyter
which .my_jupyter is configure path of your jupyter like origin ~/.jupyer.

Related

Jupyter notebook not creating config files in the specified directories

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.

Issue running jupyter notebook via wls

Installed WSL on Windows 10.
Installed Anaconda according to the Anaconda documentation with the following commands:
bash Anaconda3-2020.02-Linux-x86_64.sh
source ~/.bashrc
You can see the '(base)' in the beginning of each command input line, indicating the conda is activated.
Then I run jupyter notebook by typing:
jupyter notebook
Then I see the following changes as shown in the screen record.
Briefly, the WSL terminal window showed some information very quickly, but is changed to the windows powershell window before you could even tell the information that showed up. I know those information should contain a file and url for opening the jupyter notebook in the web browser. But they flashed out so quickly. Does anyone know why this happens?
Here is a dynamic graph of the Screen record of this issue:
Solved:
1. Wait for a bit more time on the windows cmd and the jupyter notebook running information will show up, where includes the url to open jupyter notebook in the web browser.
OR
Open up another wsl terminal, activate the same environment and type jupyter notebook list, which will show the current running jupyter notebook server. The url is also can be found there.

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 change Users folders in jupyter notebook and jupyterlab?

I have a question about jupyter notebook and jupyter lab and anaconda?
Does someone knows how to change the users folder from User a to b as an example?
I mean like I have 2 users in my PC and I want to use my secondary users folder in jupyter notebook and jupyterlab instead of my primary user folder.
Thank you
Create custom launching scripts for each user. The working directory can be set for jupyter lab using command line parameters:
jupyterlab --NotebookApp.notebook_dir=<directory_name>
(or using Jupyter config).
See related answer for the post: (How to change the Jupyter start-up folder)[https://stackoverflow.com/a/45515095/3247880]

Creating Folder Failed on jupyter notebook

When I click "New" to create text file,folder, and python3 file on jupyter notebook, it shows that "Creating File Failed" and "An error occurred while creating a new file". Could you please give me some advice about how to solve this problem ? The screenshot is attached. Thank you very much !
Some details: I use pip install jupyter to install jupyter notebook in Linux environment. You can see from the attached screenshot that there is a new icon near to the upload icon on the upper right, then I click the black upside-down triangle on the new icon, then I choose folder. This is the process in which I try to create a new folder on jupyter notebook.
Use the --user tag with pip
The reason you cannot create a folder is because you do not have permission. This could be that you are not a on the sudo list or that you are not the owner of the folder where you are trying to create a new folder.
You can potentially avoid these problems by removing your jupyter install and re-installing with the '--user' option. Be sure that you have configured a non root user with sudo privileges and that you are logged in as that user. Try the following:
pip uninstall jupyter
pip install jupyter --user
Run notebook as usual:
jupyter notebook
One more thing, be sure that you are trying to create a folder in your home directory. If you are user "Bob", make sure you are creating the folder in /home/bob/ You are the owner of this directory and should be able to modify it as you wish.
Further reading:
link1
link2
I have found reasons that I cannot create new folder/file on jupyter notebook. Reason is that I directly open jupyter notebook in the anaconda3 environment, that's incorrect! Intuitive description is that I should switch from /home/${USER}/anaconda3 to /home/${USER}/anaconda3/bin, because when I use whereis jupyter, I find that jupyter is under /~/bin directory. So, I have a try and succeed !

Resources