2 Installing Anaconda and Jupyter Notebook Flashcards

1
Q

What is Anaconda?

A

A comprehensive suite of tools and packages for data science and machine learning, bundling various Python libraries.

Anaconda simplifies package management and deployment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Jupyter Notebook?

A

A component of Anaconda used for writing and running Python code, data analysis, and creating documentation in an interactive format.

Jupyter Notebooks support live code, equations, visualizations, and narrative text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you install Jupyter Notebook?

A

Through Anaconda.

After installation, it opens in a web browser with a file explorer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two types of cells in Jupyter Notebook?

A
  • Code Cells
  • Markdown Cells

Code Cells execute Python code; Markdown Cells are used for formatted text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens when you press Shift + Enter in Jupyter Notebook?

A

Runs the current cell’s code and advances to the next cell automatically.

This is a common shortcut for executing code in Jupyter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of the execution count in Jupyter Notebook?

A

Indicates how many times a cell has been run.

This helps track the order of execution and debugging.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the benefits of using Jupyter Notebook?

A
  • Easy-to-use
  • Interactive environment
  • Suitable for beginners and advanced users
  • Ideal for quick prototyping and data visualization

It is also widely used in education and training.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does Jupyter Notebook compare to PyCharm?

A

Jupyter Notebook is praised for its simplicity and interactive coding style, while PyCharm has more robust features.

PyCharm is often used in professional settings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where are files saved in Jupyter Notebook?

A

In the folder where Jupyter Notebook was started.

Users can rename notebooks within the interface for better organization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are Conda environments?

A

Isolated spaces for different projects or Python versions to manage dependencies and avoid conflicts among libraries.

This is a key feature for maintaining clean project setups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can packages be managed with conda?

A
  • Install packages
  • Update packages
  • Remove packages

Example commands include conda install numpy and conda update pandas.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can Jupyter Notebook be launched from the command line?

A

By typing jupyter notebook in a terminal or command prompt.

This starts Jupyter in the directory from which the command is run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is JupyterLab?

A

A more modern interface that integrates notebooks, text editors, terminals, and more in one workspace.

JupyterLab offers enhanced user interface features compared to the classic Jupyter Notebook.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are magic commands in Jupyter?

A

Special commands like %matplotlib inline and %timeit that streamline tasks within the notebook environment.

Magic commands enhance functionality without leaving the notebook.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can notebooks be exported?

A

To various formats like HTML, PDF, or Python scripts.

This is useful for sharing results or creating static reports.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the version control considerations for Jupyter Notebooks?

A

Notebooks may pose challenges for version control due to merge issues; using Python scripts can be preferable.

Tools like nbdime help compare and merge notebook files.

17
Q

What is a security consideration when using Jupyter Notebooks?

A

Be cautious with sensitive data or credentials; use environment variables or secure storage solutions.

Avoid storing passwords in plain text within notebooks.

18
Q

What are some keyboard shortcuts in Jupyter Notebook?

A
  • A: Insert cell Above
  • B: Insert cell Below
  • M: Convert cell to Markdown
  • Y: Convert cell to Code

Learning shortcuts can significantly speed up workflow.

19
Q

What is real-time collaboration in Jupyter Notebooks?

A

Tools like Google Colab or JupyterHub allow multiple users to collaborate in real-time.

This feature is beneficial for team projects or educational settings.