I am using Github for windows and I have installed Anaconda and tensorflow. I would like to open Tensorboard. Following https://itnext.io/how-to-use-tensorboard-5d82f8654496, I type
tensorboard --logdir="./graphs"
But there is nothing prompt out except the message
"TensorBoard 1.12.2 at http://DESKTOP-VSHNRU0:6006 (Press CTRL+C to quit)"
Did you try to open browser and go to http://DESKTOP-VSHNRU0:6006 web page? And maybe even better http://localhost:6006?
In my case in Anaconda Terminal:
conda activate "your Tensorflow Environment with the installed Tensorboard"
python -m tensorboard.main --logdir=C:\Users\Admin\Documents\TensorFlow\workspace\training_demo\training
Then, open http://localhost:6006/#scalars in your Browser.
Related
Before I've installed python 3.6 and update all (conda update --all) my Jupyter Notebook just stopped to works. When I launch it, just an empty browser page appears. I tried all solutions that I found, but they don't work. I have deleted %USERBLABLA%, clear cache and cookies, uninstall and install it again and it still doesn't work. Browser console prints this errors:
Refused to execute script from '<URL>' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled
Uncaught ReferenceError: require is not defined
at VM17 tree:24
You should check the version of Notebook on Anaconda Navigator.
If it's 5.7.6 then you should downgrade the notebook's version to 5.7.4 by using the Anaconda Navigator.
I installed Anaconda 3.7 on Ubuntu 18.04 (Bionic Beaver). Installation was successful. When I tried to start Jupyter Notebook from navigator it throws the following error.
Access to the file was denied The file at
file:///run/user/1000/jupyter/nbserver-26395-open.html is not
readable. It may have been removed, moved or file permissions may be
preventing access.
For me, this worked on Raspberry Pi4, Ubuntu 20.04, with Chromium Browser.
Generate the config file with following command.
jupyter notebook --generate-config
Config file is created at ~/.jupyter directory
Look for parameter c.NotebookApp.use_redirect_file and set the same as False.
c.NotebookApp.use_redirect_file = False in order to disable launching browser by redirect file .
Explanation:
For versions of notebook > 5.7.2, a security feature measure was added
that prevented the authentication token used to launch the browser
from being visible. This feature makes it difficult for other users on
a multi-user system from running code in your Jupyter session as you.
However, some environments (like Windows Subsystem for Linux (WSL) and
Chromebooks), launching a browser using a redirect file can lead the
browser failing to load. This is because of the difference in file
structures/paths between the runtime and the browser.
Also make sure the ~/.local/share/jupyter and ~/.jupyter directories are owned by the user running jupyter
I think you have changed your default browser from Firefox to something else, Jupyter Notebook works fine on Firefox but throws permission denied on Chromium (for me). Just go to Setting > Details > Default Application and select FireFox in Web. Cheers
As shown in the image, jupyter notebook also provides a link. Try opening it with the browser of your choice. It worked for me...
With recent versions of snap, applications installed with snap can't by default open files in hidden folders (with a name starting by .).
In Ubuntu 20.04, chromium is installed with snap (even when using the command sudo apt install chromium-browser), so chromium can't open the html file used by Jupyter.
As stated by #rahul-sood, a simple workaround is to copy-paste one of the alternative links given by Jupyter in the terminal (starting by http://localhost:8889/?token= or http://127.0.0.1:8889/?token=).
For anyone interested in open jupyterlab or jupyter notebook in chrome : install it in the terminal with
sudo apt-get install google-chrome-stable
It didn't work for me by using chromium. And, as mentionned paugier, in Ubuntu 20.04, chromium is installed with snap (even when using the command sudo apt install chromium-browser), so chromium can't open the html file used by Jupyter. So if you install chrome by using the terminal it works.
Open Chrome and paste the Jupiter file path. In my case it's file:///home/vanx/.local/share/jupyter/runtime/nbserver-14511-open.html and it worked.
I recently installed the Anaconda Navigator (Anaconda 2) on a Windows 8.1 machine.
If I launch Jupyter Notebook from the Anaconda window, I am met with a 'Page cannot be displayed' error in my browser (Chrome).
I have tried launching Jupyter Notebook from the Anaconda Prompt (no notable error message output). I have also tried opening the Notebook in a different browser (Firefox), and I have tried running the Prompt in Administrator mode. No luck.
I have Jupyter Notebook version 5.6.0 according to the Navigator, but if I type jupyter --version at the prompt it says 4.4.0 (wondering if this is a problem?)
I kind of expected to be able to launch a Notebook right off the bat after installing Anaconda. Is there some set-up I have missed?
(Edit) Tried a few more things, after reading the Jupyter Notebook docs. Tried replacing 'localhost' in the URL with 127.0.0.1, and tried opening the link Chrome with --disable-web-security. Didn't help.
Steps which i will advice:
1) Open your command prompt in the directory which contains your notebook or where you want to create new notebook.
2) Write jupyter notebook in cmd and press enter.
If jupyter notebook is properly installed then it will certainly open, else try reinstalling it.
Note: You can always update your jupyter notebook via conda or pip. At time if you update or install package/IDE via pip, Anaconda terms it as "broken link" and give issue.
Just started using Tensorflow, but I am not able to use tensorboard command on my cmd, it gives the error command
C:\Users\tushar\PycharmProjects>tensorboard --logdir="NewTF"
'tensorboard' is not recognized as an internal or external command,
operable program or batch file.
I am using window 10 and have installed tensorboard library/
I had the same problem for tensorflow 1.5.0 and windows10.
Following tensor documentation ("Launching TensorBoard" section), you can try:
python -m tensorboard.main --logdir=[PATH_TO_LOGDIR]
Now tensorboard is working properly for me.
Open Anaconda prompt
activate tensorflow environment e.g. activate Test1-Tensor
tensorboard --logdir=path to your log files,
put entire path. e.g.
I had the same error and this is what I did.
The best way to open tensorboard on Windows on a specified port is
Step 1: Open CMD
Step 2: Type the following command
python -m tensorboard.main --logdir=<path to log file> --port=6006
The --logdir option is to specify the log location for tensorboard and --port option is to specify the port on which you want tensorboard to run.
I have chosen port 6006 for tensorboard which used to be the default port. (I got an error when I didn't specify the port).
You will get a warning if CUDA is not installed on your machine, for now it can be ignored.
Step 3: Once the command successfully executes the output looks like this
Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all
TensorBoard 2.2.0 at http://localhost:6006/ (Press CTRL+C to quit)
Step 4: Just open your browser to http://localhost:6006/
I also had the same sort of problem while running tensorboard from cmd, if your tensorflow installation was done using conda, then you can launch tensorboard from the Anaconda prompt as follows:
activate tensorflow
tensorboard --logdir=path to your log files
How to open launch TensorBoard with Anaconda Enviroment
First make sure that you are downloaded PACKAGE of tensorboard
1. Open Anaconda
2. Click on PLAY button , then you will see "Open Terminal" and click
3. Go to your main project directory (where you store logs directory)
4. Call following python script to launch TensorBoard
#EXAMPLE (python -m tensorboard.main --logdir=logs/)
python -m tensorboard.main --logdir='your log dir'
5. FINISH
Try the following:
C:\Users\tushar\PycharmProjects>python -m tensorflow.tensorboard --logdir="NewTF"
If you're using Anaconda as your python environment, make sure to activate it before trying to open tensorboard.
Would look like this in your case:
C:\Users\tushar\PycharmProjects>conda activate YourCondaEnv && tensorboard --logdir="NewTF"
Just open your anaconda prompt and head to the respective logs folder. Make sure to activate the tensorflow environment in the prompt and then just write
tensorboard --logdir logs
It worked for me.
Peace
system:CentOS release 6.4 (Final)
python: 2.7.11
ipython:IPython 4.2.0
jupyter : 4.1.0
I tried to run IPython notebook. But after typing the command "ipython notebook", i found it didn't open the web browser, whereas still staying on the Linux like the picture below showing:
enter image description here
I have the similar problem with you before. I fixed it by adding a default browser in my ubuntu subsystem.
$ sudo apt-get install firefox
Then I using Xming X server to configure graphical application under my subsystem can be displayed using bash. To do that, simply install Xming, and then go to ~/.bashrc file add the following lines:
export DISPLAY=:0
After saving, you should be able to run firefox by typing:
$ firefox
Then, run
$ jupyter notebook
It should pop up a web browser and open jupyter notebook.