Skip to main content

Installing Jupyter Notebook

Jupyter notebook allows you to work on different languages on a single paltform. Here We will see how to install jupyter using python commands. One of the advantage I have noticed in the notebook is that you don't have to keep all the required modules for your program in the system. You can just import it in the notebook itselg. For example, 'import numpy, will allow you to use the package directly from the notebook.

How to use IPython Notebook or Jupiter Notebook

First install ipython using the following command from shell :
pip install ipython
Next install Jupiter notebook as :
pip install jupyter
Open jupyter notebook from user (not from root) :
jupyter notebook
it showed some permission denied error like :
IOError: [Errno 13] Permission denied: '/run/user/6138/jupyter/notebook_cookie_secret'
I googled so much and the following fixed the code :
Run the command below
 export XDG_RUNTIME_DIR=""
Then again type
jupyter notebook
It will now open your default browser
And it will show all projects or works you have in system in the browser
If you want to run one new python file please click 'New' in the right side and from there select Python.
Here you can type your code and execute it either using 'shift'+'enter' or the Cells--> Run cells option
Now you can play with jupyter notebook !!!
Have a nice Day guys

Comments

Popular posts from this blog

Converting DICOM images into JPG Format in Centos

Converting DICOM images into JPG Format in Centos I wanted to work with medical image classification using Deep learning. The Image data set was .dcm format. So to convert the images to jpg format following steps have performed. Used ImageMagick software. http://www.ofzenandcomputing.com/batch-convert-image-formats-imagemagick/ Installed ImageMagick in Centos by downloading the rom and installing its libraries : rpm -Uvh ImageMagick-libs-7.0.7-10.x86_64.rpm rpm -Uvh ImageMagick-7.0.7-10.x86_64.rpm After installation the the image which is to be converted is pointed in directory. Inside the directory executed the command: mogrify -format jpg *.dcm Now dcm image is converted to JPG format. 

TensorFlow for Beginners

TensorFlow - Image Recognition for New Data Set Tensorflow is an open source machine learning tool provided by Google. It provides various machine learning solutions. Most prominent use for Tensorflow is Computer vision. Here is a small post, about how you can do tensorflow training on your new image data set using python. First Install tensorflow in your system using following command (using python pip) sudo apt-get install python-pip python-dev #used for python 2.7 Then download the TensorFlow Inception model folder from https://github.com/tensorflow/models/tree/master/inception Save your new Image data under a folder named Images.. Inside the folder group each class of images into each separate folder(with corresponding names) Then change flowers_data.py in inception model according to your new data set Places to change:   def num_classes(self):     """Returns the number of classes in the data set."""     re...