Running Ipython Notebook on Mac - python

Have a question.
I know that Ipython Notebook can be opened by entering ipython notebook in terminal on macOS. But is there another option to run it? for example, using some nice app or smth.
Thanks!

If you are using Anaconda, you can use the anaconda launcher. If you don't have it, you can install it with:
conda install launcher
This will install an application called Launcher which will give you a GUI to launch notebooks (and other things).

Related

Can't launch Spyder after installing with pip

Python beginner here. I would like to use Spyder as my Python IDE. Alas the standalone version does not include pip and I want to work with "Vanilla Python" rather than Anaconda. So I installed Spyder via
pip install spyder, which works fine. However, when running spyder3 in the command window, nothing happens. I get no error, but Spyder does not launch either. While the Spyder website says custom installation may be tricky, it does not provide a guide on how to get it done. Does someone know how? OS is Windows 10.
you need to follow this commands:
python -m venv spyder-env
spyder-env/Scripts/activate.bat
pip install spyder
more info
Update: Tried again with Python 3.10.4. "spyder" now exists in the Scripts folder and does launch when typing spyder in cmd. Works for me now.

Fatal Error when starting jupyter notebook

Issue: I get fatal error when I run jupyter notebook in cmd.exe as administratortor
in: python -m pip install jupyter
out: success
in: jupyter notebook
out: Fatal error in launcher: Unable to create process using '"'
I've tried the following, but I get same fatal error when I try to launch jupyter notebook from cmd
uninstalled jupyter and installed anadonda (https://repo.continuum.io/archive/Anaconda3-5.0.1-Windows-x86_64.exe)
tried answer listed here but does not resolve the issue (Fatal error in launcher: Unable to create process using ""C:\Program Files (x86)\Python33\python.exe" "C:\Program Files (x86)\Python33\pip.exe"")
ran pip3 install --upgrade pip and ran pip3 install jupyter
ran jupyter notebook --help and I get same error
Environment
Windows 10 Pro 64-bit version 1709 build 16299.125
Python 3.6.4 (see sys paths in screen shot below)
screen shot of error
https://www.dropbox.com/s/ai0ualjfj87uaaq/python_issue_20180127.png?dl=0
docs used:
https://jupyter.readthedocs.io/en/latest/install.html
https://jupyter.readthedocs.io/en/latest/running.html#running
http://jupyter.readthedocs.io/en/latest/install.html#alternative-for-experienced-python-users-installing-jupyter-with-pip
What worked for me was the command python -m notebook - I did not have Anaconda installed
I believe you need to open Jupyter notebooks by typing jupyter notebook in the anaconda prompt, not the regular windows command prompt.
For Windows users that have anaconda installed, try on Windows CMD/Powershell (better if you run it as admin):
(Assuming your environment is named "root")
activate root
jupyter notebook
Hope that helps
In my case, There was one redundant path of python3 added in the environment variable already and I was adding again.
I just removed that path and run jupyter notebook through command prompt and it worked perfectly.
I know this sounds strange ... But I ran:
python -m pip install jupyter
I did this inside my Anaconda (which I shouldn't have to do) and it installed jupyter... fixed the issue for me
Had the same problem what I did was
pip install jupyter
and then, just went ahead and typed
jupyter notebook
works like magic now
These command in cmd works:
activate root
jupyter notebook
The second command to open jupyter notebook is :
jupyter-notebook-script.py
I basically try to open notebooks with jupyter lab so what I have done is the following:
1.Right-click on any notebook select "open with" then select "choose another app"
Now select "look for another app in pc"
Go to the directory where your Anaconda Scripts are present. For me it's C:\ProgramData\Anaconda3\Scripts
Select "jupyter-notebook.exe" or "jupyter-lab.exe"
Now every notebook will open automatically just by hitting enter and no need to type the command again and again
For those ones who do not have anaconda
python -m jupyter notebook
I was using the Python37 installation from the Microsoft store, when I suddenly got the 'Fatal error in launcher: Unable to create process' error while trying to start the jupyter notebook. I actually tried every answer here, but with no succees.
The solution was to completely uninstall/delete everything Python/Jupyter related from AppData as well as the leftovers from my preceeding Anaconda installation and then go for a clean install from python.org.
I guess this is something we all have to do from time to time.
Check in to your Environment Variable Paths. If you had installed both Python(Python 2.x.x) or Python3(Python 3.x.x) you will have a problem running Scripts file of python, since you had duplicated install. Uninstall the redundant one.
If you had tried to fix it multiple times and nothing works, try re-install your Python. This save lives every time.
This problem is caused by your antivirus program because I suffered from the same issue, then I discovered that my antivirus software that I am using which is Avast was blocking python.exe file for some reasons that I do not understand.
So you should go to your antivirus settings and make an exception for python.exe file to unblock it.
Had the same problem and tried every suggestion here and in other forums.
In the end, removing the environment via conda remove and then creating it again worked. But I had to update conda via
conda update -n base -c defaults conda
and then start the notebook via jupyter notebook
I resolved this problem on Windows by running the Anaconda Prompt as Administrator, and then launching JupyterLab. Launching JupyterLab from the Anaconda Prompt with elevated privileges seems to have solved the issue entirely.

How to start Spyder IDE on Windows

I downloaded spyder using the
pip install spyder
in my windows 10 32-bit operating system, but i dont see any desktop icons or exe files to start running the IDE. I downloaded spyder 3, any my python is 3.6.
I even tried creating a shortcut of spyder.exe from the Python3.6/Scripts folder, but it won't open.
The name of the spyder executable was changed to spyder3.exe in python version 3.
I install pyqt5 and spyder via pip and was able to launch spyder3. I first tried without installing pyqt5 and nothing happened. Once I installed pyqt5, then spyder 3 opened.
Try the following from a windows cmd.exe prompt:
C:\Users\..>pip install pyqt5
C:\Users\..>pip install spyder
C:\Users\..>spyder3
I had the same problem after setting up my environment on Windows 10. I have Python 3.6.2 x64 installed as my default Python distribution and is in my PATH so I can launch from cmd prompt.
I installed PyQt5 (pip install pyqt5) and Spyder (pip install spyder) which both installed w/out error and included all of the necessary dependencies.
To launch Spyder, I created a simple Python script (Spyder.py):
# Spyder Start Script
from spyder.app import start
start.main()
Then I created a Windows batch file (Spyder.bat):
#echo off
python c:\<path_to_Spyder_py>\Spyder.py
Lastly, I created a shortcut on my desktop which launches Spyder.bat and updated the icon to one I downloaded from the Spyder github project.
Works like a charm for me.
Try these commands in order
pip3 install spyder
spyder3
Try the command spyder3
If you check the scripts folder you'll find spyder3.exe
As stated in the documentation of Spyder, you need to install PyQt5 first.
Open a Command Prompt as Administrator, then run:
pip install pyqt5
pip install spyder
Then you can find the spyder3.exe in the Python3.6/Scripts folder. You can also make a shortcut to it. No need for Anaconda.
method 1:
spyder3
method 2:
python -c "from spyder.app import start; start.main()"
method 3:
python -m spyder.app.start
Open a command prompt. Enter the command spyder. Does anything appear? If an exception is preventing it from opening, you would be able to see the reason here. If the command is not found, update your environment variables to point to the Python3.6/Scripts folder, and run spyder again (in a new cmd prompt).
If you are using Anaconda execute the following commands and your life will be saved!
conda update qt pyqt
conda update spyder
In case if you want the desktop icon
In desktop, create a new shortcut, in Location paste this
%comspec% /k spyder3
then type the name Spyder,
Now you may have Desktop Icon for opening Spyder
After pip install spyder give this command
pip install --upgrade spyder
This command will update all Spyder dependencies.
Now in command prompt(cmd) navigate to the scripts folder in your python directory. In my system the path is C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts so i use the following command in command prompt.
cd C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts
once you are inside scripts directory type spyder3 and press enter and spyder ide starts.
C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts>spyder3
on windows,
pip install --upgrade spyder
in powershell, start python shell, by typing python
from spyder.app import start
start.main()
That't it.
Install Ananconda packages and within that launch spyder 3 for first time. Then by second time you just click on spyder under anaconda in all programs.

Installed Spyder using pip under Canopy (OSx), how do i start Spyder?

I am on a machine running Yosemite. I manage my python environment with Canopy Enthought. I'm trying to install Spyder, so I don't have to use the Editor that comes with Canopy.
I opened a Canopy terminal and used pip install spyder which went fine.
How do I actually start Spyder? When I use pip list I can see the Spyder package.
spyder
spyder.py
python spyder.py
ect. does not work.
Thanks in advance.
python -c "from spyderlib import start_app; start_app.main()"

anaconda launcher links don't work

I've installed anaconda on mavericks osx. When I'm trying to install ipython notebook from launcher app - it shows message that app is installing, but nothing happens after. Also links in launcher don't work and I can easily start ipython notebook from terminal. So I guess something wrong with launcher itself.
How can I fix it?
conda install -f launcher
conda install -f node-webkit
The Launcher application requires both of these on OSX.
It is also a good idea to make sure you Anaconda environment is up to date first with:
conda update conda
conda update anaconda
As of conda 4.1.0 it is recommended to use navigator , For me the launcher stopped working . To install conda navigator
conda install anaconda-navigator
Use Anaconda full suite , that include installing all the tools and necessary packages ,it works fine for me , I didn't use the Launcher !
Had the same issue on MacOSX Yosemite. Was able to run the launcher by typing 'launcher' in the terminal. And then by changing the bash profile IPython Notebook started working
https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python

Categories