Anaconda Questions


#1

Hi!

Few Questions on Anaconda:

  1. Whats the difference between jupyterlab and notebook?
  2. In Jupiter Lab, Whats diff between notebook and console?
  3. Whats file extension .ipnyb mean?
  4. Can I run a python program like a.py instead of typing python a.py

#2

Hi @subramani,

Please find my answers below

1. Whats the difference between jupyterlab and notebook?

From the Jupyterlab documentation

JupyterLab is the next generation user interface for Project Jupyter. It offers all the familiar building blocks of the classic Jupyter Notebook (notebook, terminal, text editor, file browser, rich outputs, etc.) in a flexible and powerful user interface that can be extended through third-party extensions that access our public APIs. Eventually, JupyterLab will replace the classic Jupyter Notebook.

2. In Jupiter Lab, Whats diff between notebook and console?

The notebook provides you a nice UI and various features to write, collaborate and share your code, documents, and plots.

The Console is a standard Linux terminal.

3. Whats file extension .ipnyb mean?

It means that file is a IPython Notebook

4. Can I run a python program like a.py instead of typing python a.py

Yes, you can run it like a.py. Please find the below steps to do the same

  • Create a file a.py

    #!/Users/abhinav/anaconda3/bin/python 
    
    print("Hello World!")
    
  • Set execute permission on it

    chmod +x a.py

  • Run it

    ./a.py

Hope this helps


#3

Thanks Abhinav for your response!
VS


#4

Additional Question:
Is there a contextual help in anaconda? like autocomplete for method names or suggestions? How do I invoke it?


#5

You can press tab or control space in jupyter.