This is probably due to the shortcut you use for launching Jupyter redirecting to Jupyter Lab or something of such, you can check on how to stop the redirection here: python - How to set jupyter notebook to open on browser automatically - Stack Overflow
Similar problem. Working notebook environment on a remote server several weeks ago. Logged in and notebook initially would open but would not recognize the conda environments packages (could not import anything). Tore it down reinstalled everything and now jupyter notebook ... serves up a blank page.
The frustration for me is that notebook became an excellent environment to work in esp. with extensions. The lab environment is very kludgy by comparison eg. if I want to select a range of cells, clicking the left hand side of the first, say, collapses it! In notebook the cell (sensibly) remains visible. I could go on but really, jupyter lab and by extensions 7, are not up to the quality of the last notebook
Easiest way for me - double click on the .ipnyb file. When prompted to pick a program to open the extension with go to /ProgramData/Anaconda3/Scripts and locate the jupyter-notebook.exe file and click it.
Just look into your file directory and look for programs that can open the file type and set it as your default app opener but you need to take into consideration that if you want to use Jupiter notebook, you can run jupyternotebook app and locate the file from the jupyter notebook directory.
I installed python and jupyter notebook through the Anaconda distribution. I have been successfully using jupyter notebook for weeks and it has run perfectly fine. However, I can only launch a notebook through the Anaconda Navigator GUI.
One important thing: after that while running jupter notebook from any location may give DLL Error. You have to first give command activate base and then jupyter notebook. Enjoy working now.
Adding this extra path in your environment variables will eliminate DLL Error, hence you don't have to activate conda each time when you want to open jupyter notebook. It works for me very well.
I have a local installation of the Anaconda distribution and my first option to start Jupyter would be through the Anaconda Navigator, but maybe I have to do something else. Because it is a local installation the command line jupyter notebook produces no results.
You don't need to change anything in the jupyter_notebook_config file. Check whether your default web browser (if it's Chrome) or reset and again choose as a web browser (Chrome for me) as a default browser.
I'd like to offer a little more information about what to put in your jupyter_notebook_config.py file than is included in any of the other answers. jupyter is using python's webrowser module to launch the browser by passing the value for c.NotebookApp.browser to the webbrowser.get(using=None) function. If no value is specified, the function selects the user's default browser. If you do specify a value here, it can be interpreted in one of two ways, depending on whether or not the value you specified ends with the characters %s.
After considerable thrashing about trying to launch a jupyter notebook in chrome from Anaconda in Win10 when chrome was not my default browser, I combined several of the suggestions above and, in the jupyter_notebook_config.py file under .jupyter in my home directory put in these lines in place of the default c.NotebookApp.browser line, and it finally worked!:
To set it permanently, edit the jupyter_notebook_config.py file in your .jupyter folder. I'm not certain that you need to escape the backslashes (i.e. \ vs just ), but I used the following and it worked (again, note that the order/type of quotes is different):
Jupyterlab 3 migrated from notebook server to plain jupyter server. To select the browser jupyter lab will open, put the config in .jupyter/jupyter_server_config.py and replace NotebookApp by ServerApp. For example:
if you didn't specify a browser for your jupyter notebook, maybe just changing the default browser of your operating system can solve your issue; like it did for me.check default browser in window:default apps: web browser
In the scientific community Anaconda and Jupyter Notebook is the most used distribution and tool respectively to run Python and R programming hence in this article I will cover step-by-step instructions of how to install anaconda distribution, set up Jupyter Notebook, and run some examples.(vitag.Init=window.vitag.Init[]).push(function()viAPItag.display("vi_25930111794"))Anaconda is the most used distribution platform for python & R programming languages in the data science & machine learning community as it simplifies the installation of packages like pandas, NumPy, SciPy, and many more. Conda is the package manager that the Anaconda distribution is built upon. It is a package manager that is both cross-platform and language agnostic. We can use conda to install any third-party packages.Jupyter Notebook is an interactive web UI environment to create notebook documents for python, R languages. Jupyter Notebook documents take statements similar to REPL additionally it also provides code completion, plots, and rich media.(vitag.Init=window.vitag.Init[]).push(function()viAPItag.display("vi_25930111794"))In case you wanted to run pandas, use How to Run Pandas with Anaconda & Jupyter notebook
Hmm no, that seems like a unique situation. I think it would be worth trying to debug in the shell instead of the navigator though as the console output is useful. You could try digging a little deeper yourself e.g try just running up the server without opening the browser- jupyter notebook --no-browser (can you still open the server page, what about simple text documents instead of notebooks?). If that breaks then do other similar conda tools like ipython fail? If you can narrow down the cause of the issue the next steps would be easier.
PS. I know that I can export environment packages list from office pc, import packages list and install packages in Home pc but this will never transfer any configuration settings made to jupyter notebook and jupyter lab. I want ALL CONFIGURATIONS to be shifted NOT JUST PACKAGES AND ENVIRONMENT LIST.
I have been facing the same kind of issue while trying to launch Jupyter Notebook or JupyterLab from Anaconda Navigator app for windows. After getting into here, I followed DishinGoyani suggestion and ran Anaconda Prompt, just to find out there were two other instances already open. At the end, the prompt was able to launch a new instance at another port, but the Navigator itself remained stuck and did not respond when I tried to launch jupyter from there.
which works perfectly when I run it in the terminal directly (conda activate base && jupyter-notebook & disown && exit). However, when I try to use it in the .desktop, a terminal window opens for about half a second and then it disappears, and JN does not even open.
If you are interested in automating some steps from SNAP GUI into snappy, I suggest you not to use jupyter notebook at it is slow (expect if you are running something light ). Jupyter notebook is more for demonstration purposes rather than running something heavy
He basically says to install tensorflow in anaconda, and then change from the base (root) environment to the tensorflow environment that we create and launch jupyter notebook from there, as shown in these images:
What I click:
image1045386 33.6 KB
This is quite interesting that this solves the problem for you. It would be interesting to start julia manually from the windows command line (cmd.exe) with the option --project=@. after changing the directory to the folder containing the notebooks. Maybe you will see a more helpful error message.
This println() show current notebook directory. Then, search for Projet.toml. Since the file does not exist, IJulia select base env project.toml file (" \\.julia\\environements\\........\Project.toml ").
And jupyter open in current dir and works.
To run Jupyter notebook, open Windows command prompt or Git Bash and run jupyter notebook. If you use Anaconda Navigator to open Jupyter Notebook instead, you might see a Java gateway process exited before sending the driver its port number error from PySpark in step C. Fall back to Windows cmd if it happens.
After running this command, you will notice that a new file named Pipfile was created in your-folder. A Pipfile contains package information that represents a python environment. Open your terminal and make sure you are still in the your-folder directory; then, run pipenv shell. You have now activated your python environment, the environment that contains the arcgis package! You can run jupyter notebook or python in this environment to start using the API.
To install the jupyter_contrib_nbextensions notebook extensions, three stepsare required. First, the Python pip package needs to be installed. Then, thenotebook extensions themselves need to be copied to the Jupyter data directory.Finally, the installed notebook extensions can be enabled, either by usingbuilt-in Jupyter commands, or more conveniently by using thejupyter_nbextensions_configuratorserver extension, which is installed as a dependency of this repo.
The command does two things: installs nbextension files, and edits nbconvertconfig files. The first part is essentially a wrapper around thenotebook-provided jupyter nbextension install, and copies relevant javascriptand css files to the appropriate jupyter data directory.The second part edits the config files jupyter_nbconvert_config.jsonandjupyter_notebook_config.json as noted below in the options.The command can take most of the same options as the jupyter-provided versions,including
Alternatively, and more conveniently, you can use thejupyter_nbextensions_configuratorserver extension, which is installed as a dependency of this repo, and can beused to enable and disable the individual nbextensions, as well as configuretheir options. You can then open the nbextensions tab on the tree(dashboard/file browser) notebook page to configure nbextensions.You will have access there to a dashboard where extensions can beenabled/disabled via checkboxes.Additionally a short documentation for each extension is displayed, andconfiguration options are presented.
df19127ead