start jupyter lab in different folder (windows) - jupyter-notebook

For jupyter notebooks, I can do:
jupyter notebook --ExtractOutputPreprocessor.enabled=False --notebook-dir C:/Bla
so I tried something similar for jupyter lab:
jupyter lab --app-dir C:/Bla
but get:
JupyterLab Error
JupyterLab application assets not found in "C:/Bla"
Please run `jupyter lab build` or use a different app directory
I did a few google searches without a clear answer. Could someone please enlighten me? Thanks.

Don't use --app-dir - this is for custom deployments of JupyterLab.
notebook-dir should work fine, as well as ServerApp.root_dir:
jupyter lab --notebook-dir C:/Bla
or
jupyter lab --ServerApp.root_dir C:/Bla
Unless you have a very old version of JupyterLab installed (in that case - upgrade).

Related

Jupyter-notebook fails to start | PyForMLS

I am currently setting up a Python data-science client for SQL Server Machine Learning Services following this guide: https://learn.microsoft.com/en-us/sql/machine-learning/python/setup-python-client-tools-sql?view=sql-server-ver15
Unfortunately, running Jupyter notebooks for this distribution does not seem to work for me: Typing .\Scripts\jupyter-notebook in the distribution folder, or directly running jupyter-notebook.exe from the Scripts sub-folder does not start Jupyter. In the terminal, the command exits with no ouput.
Afterwards, https://localhost:8889/tree is not reachable as should be the case according to the tutorial above.
Any suggestions? (I already checked https://jupyter-notebook.readthedocs.io/en/stable/troubleshooting.html for solutions). Thank you!
Update: At least .\Scripts\jupyter-console is running, though it is not the same experience.
some cases .\Scripts\jupyter-notebook will not work fine because of the installation issues. As anaconda is having both commercial and enterprise editions, issues will raise.
Instead use the following procedure for cool opening of Jupyter-Notebook in anaconda distribution
Click on Start menu
Type Jupyter
Click on jupter icon which is visible in search results
Jupyter CMD will start running and make it minimized instead closing it. It will open the UI of jupyter notebook in browser.
Jupyter notebook for SQL
Check the documentation link which is available in link which is the configuration of jupyter notebook for SQL.
Document Credit: Rajendra Gupta
https://localhost:8889/tree

Sage refuses to open any Jupyter notebook even though Anaconda is installed

I have installed Sage using the latest installer and I can open a Sage terminal (by clicking on it from the start menu...not by entering 'sage' in Windows command line).
I have then installed Anaconda. I can enter 'python' in Windows command line and it works. But the puzzling part is jupyter notebooks. By my understanding, it comes with Anaconda so, I should be able to open my Sage console and type some version of 'n jupyter' or 'njupyter' or '-n jupyter' etc to get a sage Jupyter notebook running.
This is NOT happening at all. Instead I get
Edit: I would like to get Sage to open a Jupyter notebook on my computer but the commands I tried (in the screenshot provided) just keep failing. I got a version of these commands from the Sage tutorial itself and still, it doesn't work.
Any suggestions on how to get this working are much appreciated.
The Sage-Windows installer installs three shortcuts for you:
"SageMath x.y" -- to use SageMath in the (Cygwin) command line
"SageMath x.y Notebook" -- to use SageMath in Jupyter
"SageMath x.y shell" -- to access a Cygwin terminal where Sage has not been started
Have you tried using the "SageMath 9.3 Notebook" shortcut?
See a guide at
https://wiki.sagemath.org/SageWindows

Jupyter notebook looks for modules in the wrong place

I use Anaconda to start Jupyter notebook.
However, since this week, I get the error that Jupyter cannot find Mathplotlib, but it is look in the wrong directory, I think.
I think it should look in a directory under'Anaconda3'? The problems started when I installed Python again, I think. It's as if there are two versions installled and Jupiter Notebook cannot find my libraries anymore.
Reinstalling Anaconda navigator may fix the issue!

Problems running Jupyter Notebook

I've just installed Jupyter Notebook so I can follow the Udemy Python Bootcamp course.
I already had a fully working install of Python 3.71 and Pycharm and then installed Jupyter Notebook with:
pip install jupyter
This was successful other than messages about the some files not being in the PATH environment variable. I manually added the folder to PATH.
I have run Jupyter Notebook at the command prompt with:
jupyter notebook
So far so good - Jupyter Notebook home screen appears in my browser with all the expected folders, Documents, Desktop etc listed.
However if I try and left click on one to see its contents then it pauses for a few seconds and just displays the following (not very descriptive) error:
Server error: error
The error as a screen shot:
I'm absolutely stuck and can't progress my course without Jupyter Notebook.
I'm running Windows 7 Home Premium 64 bit
Firefox (Quantum 64.0)
Bitdefender Internet Security 2018
You can try
pip install --upgrade jupyterhub
I solved the problem using this command.

Open multiple jupyter notebook with different extension config

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.

Resources