How to review the codes from .ipynb files in Mac OS ? - ipython

I have some code to review and the files have extensions of .ipynb in the end. I install IPython using the command sudo pip install ipython. Now, when I type ipython in the terminal, I get the return -bash: ipyhton: command not found.
What I could do now to review those files? Python is installed in the system. I read the I need to use the command ipython notebook file_name.ipynb to run those files from the terminal.

Related

Unable to see the output after running the code in Jupyter in cmd it say's system cannot find the path

Installed JupyterLab using below commands and tried to read data using spark but in cmd it says The system cannot find the path specified.
Installed Jupyter using pip install pyspark==2.3.1
pip install jupyterlab
jupyter-lab
As i am new to pyspark cannot able to figure out what exact the issue is
Pleasehelp me

cannot open .ipynb file even if ipython and jupyter is installed in my pc

I have installed ipython, jupyter etc using pip in my windows 7 pc. Now I want to open a .pynb file from command line. When I typed 'jupyter notebook' it is showing: 'jupyter' is not a recognized internal or external command ...... Can you tell where is the problem? Can't I open the file from command line or I have to install an IDE like 'pycharm' or 'anaconda'?
Please try the below command:
python -m notebook
This should work without anaconda.

Add python 2.7 to ipython notebook (default python3)

I am having a really hard time adding python 2.7 as a kernel to my iphyton notebook. I have anaconda installed with a python environment called "python2." I can navigate to the environment folder and launch ipython (using python 2.7) in the script folder.
I have tried ipython kernelspec install-self using iphython.exe, however, it seems like ipython is not even a command in that window.
I tried it again in anaconda command window and it just install python3. Please help with precise steps.
Ok I got it. I had to:
Change my python.exe under envs to python2.exe. I also change pythonw to pythonw2.
Added Anacoda\envs\python2 folder that includes python2.exe and scripts to path variable
Then ran this command in Anaconda command window: python2 -m IPython kernelspec install-self
Then ipython kernelspec list to verify

Created an Anaconda python3 environment but it still loads ipython 2.7.6

So I installed Anaconda on my Ubuntu linux 12.04LTS x64 box. It seems to work fine except for this. So I created a conda environment using the
conda create -n py33dev python=3 anaconda
When I try to run the ipython shell, I would expect to get the Ipython3 shell and notebook. However, it still loads the ipython 2.7.6 shell. I tried using the ipython3 command, but it will then load an ipython3 shell from my computer and not from Anaconda.
I tried to install ipython3 to the Anaconda environment using
pip install ipython3
and
conda install ipython3
However, when I do this I just get a message saying "No packages found matching: ipython3"
So I am not sure why Anaconda runs fine with python2 but not with python3--even though Continuum indicates it is python3 ready. Am I missing a step anywhere? Does anyone know how to solve this?
Did you remember to do "source activate py33dev"?

ipython will not work even after reinstalling

Im trying very hard to get ipython notebook to work. I got it working in terminal, but I can't get it to work in my browser.
When I type ipython notebook in terminal, it says -bash: ipython: command not found
MacBook-Air:~ me$ sudo easy_install https://github.com/ipython/ipython/tarball/master
Downloading https://github.com/ipython/ipython/tarball/master
error: None
MacBook-Air:~ me$ ipython
-bash: ipython: command not found
Im really unsure why this is happening.
You do not need to (and you probably shouldn't) do sudo easy_install it will probably install things as root, avoid sudo. Check that ipython executable is in your $PATH.
github tarballs are broken for IPython. You do have to deep clone with git if you want to run master, then run python setup.py with the option you like (install, develop, symlink)...
Use pip if you want to run IPython stable.
You might have issues with readline on osx (wrong multiline editting, wrong completion, IPython popping error messages at launch time) this is one of the rare case where you might have to using easy_install for readline.
Maverick (10.9) has issues with python/numpy/matplotlib you might need to have a custom python build with homebrew that does not use system libs.