Thursday, July 8, 2021

Technical Blog



 

How to Install And Run Anaconda on PC -By SARTHAK SINGH RAWAT









Anaconda is a distribution of the Python and R programming languages for scientific computing (data science, machine learning applications, large-scale data processing, predictive analytics, etc.), that aims to simplify package management and deployment. The distribution includes data-science packages suitable for Windows, Linux, and macOS. It is developed and maintained by Anaconda, Inc., which was founded by Peter Wang and Travis Oliphant in 2012. As an Anaconda, Inc. product, it is also known as Anaconda Distribution or Anaconda Individual Edition, while other products from the company are Anaconda Team Edition and Anaconda Enterprise Edition, both of which are not free.

Package versions in Anaconda are managed by the package management system conda. This package manager was spun out as a separate open-source package as it ended up being useful on its own and for other things than Python. There is also a small, bootstrap version of Anaconda called Miniconda, which includes only conda, Python, the packages they depend on, and a small number of other packages.
INSTALLING ANACONDA:



Note: Using Anaconda in a commercial setting? You may need to purchase a license to stay compliant with our Terms of Service. This can be accomplished through Anaconda Commercial Edition, Anaconda Team Edition, or Anaconda Enterprise. If you have already purchased Commercial Edition, please proceed to the Authenticating Commercial Edition section after completing your installation here.

Haven’t purchased Commercial Edition yet? Visit https://anaconda.cloud/register to get started.

Download the Anaconda installer.

RECOMMENDED: Verify data integrity with SHA-256. For more information on hashes, see What about cryptographic hash verification?

Double click the installer to launch.

Note: To prevent permission errors, do not launch the installer from the Favorites folder.
Note: If you encounter issues during installation, temporarily disable your anti-virus software during install, then re-enable it after the installation concludes. If you installed for all users, uninstall Anaconda and re-install it for your user only and try again.

Click Next.

Read the licensing terms and click “I Agree”.

Select an install for “Just Me” unless you’re installing for all users (which requires Windows Administrator privileges) and click Next.

Select a destination folder to install Anaconda and click the Next button.

Note: Install Anaconda to a directory path that does not contain spaces or unicode characters.

Note: Do not install as Administrator unless admin privileges are required.






Choose whether to add Anaconda to your PATH environment variable. We recommend not adding Anaconda to the PATH environment variable, since this can interfere with other software. Instead, use Anaconda software by opening Anaconda Navigator or the Anaconda Prompt from the Start Menu.


Choose whether to register Anaconda as your default Python. Unless you plan on installing and running multiple versions of Anaconda or multiple versions of Python, accept the default and leave this box checked.

Click the Install button. If you want to watch the packages Anaconda is installing, click Show Details.

Click the Next button.



Optional: To install PyCharm for Anaconda, click on the link to https://www.anaconda.com/pycharm.

Or to install Anaconda without PyCharm, click the Next button.

After a successful installation you will see the “Thanks for installing Anaconda” dialog box:


If you wish to read more about Anaconda.org and how to get started with Anaconda, check the boxes “Anaconda Individual Edition Tutorial” and “Learn more about Anaconda”. Click the Finish button.



Verify your installation.

Note: If you are behind a company proxy, you may need to do some additional set up. See how to set up your proxy.

RUNNING ANACONDA ON PC:

Anaconda Individual Edition contains conda and Anaconda Navigator, as well as Python and hundreds of scientific packages. When you installed Anaconda, you installed all these too.Conda works on your command line interface such as Anaconda Prompt on Windows and terminal on macOS and Linux.

Navigator is a desktop graphical user interface that allows you to launch applications and easily manage conda packages, environments, and channels without using command-line commands.

You can try both conda and Navigator to see which is right for you to manage your packages and environments. You can even switch between them, and the work you do with one can be viewed in the other.



Try this simple programming exercise, with Navigator and the command line, to help you decide which approach is right for you.

When you’re done, see What’s next?.

Your first Python program: Hello, Anaconda!

Use Anaconda Navigator to launch an application. Then, create and run a simple Python program with Spyder and Jupyter Notebook.

Open Navigator

Choose the instructions for your operating system.

Windows.

macOS.

Linux.
Windows

From the Start menu, click the Anaconda Navigator desktop app.


macOS

Open Launchpad, then click the Anaconda Navigator icon.


Linux

Open a terminal window and type anaconda-navigator.

Run Python in Spyder IDE (integrated development environment)

Tip

Navigator’s Home screen displays several applications for you to choose from. For more information, see links at the bottom of this page.

On Navigator’s Home tab, in the Applications pane on the right, scroll to the Spyder tile and click the Install button to install Spyder.

Note: If you already have Spyder installed, you can jump right to the Launch step.

Launch Spyder by clicking Spyder’s Launch button.

In the new file on the left, delete any placeholder text, then type or copy/paste print("Hello Anaconda").

In the top menu, click File - Save As and name your new program hello.py.

Run your new program by clicking the triangle Run button.

You can see your program’s output in the bottom right Console pane.


Close Spyder

From Spyder’s top menu bar, select Spyder - Quit Spyder (In macOS, select Python - Quit Spyder).

Run Python in a Jupyter Notebook

On Navigator’s Home tab, in the Applications pane on the right, scroll to the Jupyter Notebook tile and click the Install button to install Jupyter Notebook.

Note: If you already have Jupyter Notebook installed, you can jump right to the Launch step.

Launch Jupyter Notebook by clicking Jupyter Notebook’s Launch button.

This will launch a new browser window (or a new tab) showing the Notebook Dashboard.



On the top of the right hand side, there is a dropdown menu labeled “New”. Create a new Notebook with the Python version you installed.

Rename your Notebook. Either click on the current name and edit it or find rename under File in the top menu bar. You can name it to whatever you’d like, but for this example we’ll use MyFirstAnacondaNotebook.

In the first line of the Notebook, type or copy/paste print("Hello Anaconda").

Save your Notebook by either clicking the save and checkpoint icon or select File - Save and Checkpoint in the top menu.

Run your new program by clicking the Run button or selecting Cell - Run All from the top menu.


Close Jupyter Notebook

From Jupyter Notebooks top menu bar, select File - Close and Halt.

Click the Quit button at the upper right of the Notebook Dashboard and close the window or tab.

Close Navigator

From Navigator’s top menu bar, select Anaconda Navigator - Quit Anaconda-Navigator.

Write a Python program using Anaconda Prompt or terminal

Open Anaconda Prompt

Choose the instructions for your operating system.



Windows.

macOS.

Linux.Windows

From the Start menu, search for and open “Anaconda Prompt”:


macOS

Open Launchpad, then click the terminal icon.

Linux

Open a terminal window.

Start Python

At Anaconda Prompt (terminal on Linux or macOS), type python and press Enter.

The >>> means you are in Python.

Write a Python program

At the >>>, type print("Hello Anaconda!") and press Enter.

When you press enter, your program runs. The words “Hello Anaconda!” print to the screen. You’re programming in Python!

Exit Python

On Windows, press CTRL-Z and press Enter. On macOS or Linux type exit() and press Enter.

Optional: Launch Spyder or Jupyter Notebook from the command line

At the Anaconda Prompt (terminal on Linux or macOS), type spyder and press Enter. Spyder should start up just like it did when you launched it from Anaconda Navigator.

Close Spyder the same way you did in the previous exercise.

At the Anaconda Prompt (terminal on Linux or macOS), type jupyter-notebook and press Enter.

Jupyter Notebook should start up just like it did when you launched it from Anaconda Navigator. Close it the same way you did in the previous exercise.

Sunday, March 1, 2020

Apostles of Light

Apostles of Light

by: Sartak Rawat


"Never show your weakness to anyone", "Boys don't cry", "Man up!"or "Move on!" . Every one of use might have some or the other aforementioned quotes to deal with our mental or emotional problems. This type of apathetic statements said  to people in mental or emotional distress frequently if not regularly, causes them to further spiral down towards a certain doom of hopelessness and despair.

 In our current society we fail to develop a sympathetic way to deal with these type of problems. Seldom people get embarrassed to share their feelings with other people. This is now regularly seen in the youth for they must maintain an image in front of society as a strong man/woman. 

To solve this problem of society my classmates and I tried to come up with a concept of an N.G.O. to spread knowledge about mental and emotional problems. We as an organisation are trying to help the people speak about their problems and encourage them to take on the worst life has to give and muster up courage to help themselves or somebody else through it.

With our tacky name we try to bring back the lost light to people in their seemingly void life.