John Paul Mueller - Algorithms For Dummies

Здесь есть возможность читать онлайн «John Paul Mueller - Algorithms For Dummies» — ознакомительный отрывок электронной книги совершенно бесплатно, а после прочтения отрывка купить полную версию. В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Жанр: unrecognised, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.

Algorithms For Dummies: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Algorithms For Dummies»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

Your secret weapon to understanding—and using!—one of the most powerful influences in the world today
Algorithms For Dummies,
Algorithms For Dummies

Algorithms For Dummies — читать онлайн ознакомительный отрывок

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Algorithms For Dummies», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

The other reason that you really need to know about Colab is that you can use it with your alternative device. During the writing process, some of the example code was tested on an Android-based tablet (an ASUS ZenPad 3S 10). The target tablet has Chrome installed and executes the code well enough to follow the examples. All this said, you likely won’t want to try to write code using a tablet of that size — the text was incredibly small, for one thing, and the lack of a keyboard could be a problem, too. The point is that you don’t absolutely have to have a Windows, Linux, or OS X system to try the code, but the alternatives might not provide quite the performance you expect.

Algorithms For Dummies - изображение 34Google Colab generally doesn’t work with browsers other than Chrome (the browser used in this chapter), Firefox, or Safari (initial tests with Microsoft Edge have also been encouraging). In most cases, you see an error message, such as This site may not work in your browser. Please use a supported browser, and no other display if you try to start Colab in a browser that it doesn’t support. The included More Info link takes you to https://research.google.com/colaboratory/faq.html#browsers , where you can learn more information.

SOME FIREFOX ODDITIES

Even with online help, you may still find that your copy of Firefox displays a SecurityError: The operation is insecure.error message. The initial error dialog box points to some unrelated issue, such as cookies, but you see this error message when you click Details. Simply dismissing the dialog box by clicking OK makes Colab appear to be working because it displays your code, but you won't see results from running the code.

As a first step toward fixing this problem, make sure that your copy of Firefox is current; older versions don’t provide the required support. After you've updated your copy, setting the network.websocket.allowInsecureFromHTTPSpreference using About:Configto Trueshould resolve the problem, but sometimes it doesn't. In this case, verify that Firefox actually does allow third-party cookies by selecting both the Always for the Accept Third Party Cookies and Site Data option and the Remember History option in the History section on the Privacy & Security tab of the Options dialog box. Restart Firefox after each change and then try Colab again. If none of these fixes works, you must use Chrome to work with Colab on your system.

Getting familiar with Google Colab features

Google Colab provides access to a number of features through the menu system. One of these features, hardware acceleration, appears in the “ Using Hardware Acceleration” section, later in this chapter. The features in this section all appear on the Tools menu.

Locating commands

The Tools ⇒ Command Palette option displays a list of commands you can execute, as shown in Figure 3-1. Some of these commands also have shortcut keys, such as Ctrl+Alt+M for adding a comment to a cell. All these commands help you to perform tasks associated with Notebook content, such as adding forms.

FIGURE 31Using Colab commands makes configuring your Notebook easy - фото 35

FIGURE 3-1:Using Colab commands makes configuring your Notebook easy.

Configuring settings

The Tools ⇒ Settings option displays the Settings dialog box, shown in Figure 3-2. The four settings tabs perform these tasks:

Site: Configures how the site works. The most interesting setting is the theme. Selecting Adaptive lets Colab choose the interface colors based on lighting conditions. You can also configure display and access settings on this tab.

Editor: Determines how text appears onscreen and how the interface works. For example, you can set the key bindings to work like those in Vim (a text editor included on Unix and Linux systems, generally as the vi utility; see https://www.vim.org/ ) if desired. You can also select font size, spaces for each level of indentation, and a plethora of other settings.

Colab Pro: Provides an advertisement for Colab Pro ( https://colab.research.google.com/signup ), which gives you some significant benefits like faster GPUs, longer runtimes, and more memory — all of which let you get more work done in a shorter time.

Miscellaneous: Contains fun settings. You can choose from three visual effects: adding thunder and lightning using the Power Level setting; letting a Corgi run across the top of the display; and allowing a kitten to run across the top of the display. You can choose any mix of these visual effects.

FIGURE 32The Settings dialog box helps you configure the Colab IDE - фото 36

FIGURE 3-2:The Settings dialog box helps you configure the Colab IDE.

Customizing keyboard shortcuts

If you don’t like the default keyboard shortcuts, you can customize them to match your needs. To do so, choose Tools ⇒ Keyboard Shortcuts, and you see the Keyboard Preferences dialog box, shown in Figure 3-3. If you see Set Shortcut, it means that the command doesn’t currently have a shortcut, so you can add one if desired. Here’s how you work with shortcuts:

To add or change a shortcut, place the cursor in the box next to the command and press the shortcut key you want to use for that command.

To remove a shortcut, press Delete.

FIGURE 33Customize shortcut keys for speed of access to commands Comparing - фото 37

FIGURE 3-3:Customize shortcut keys for speed of access to commands.

Comparing files

Sometimes you need to compare two files to see how they differ. When you select Tools ⇒ Diff Notebooks, Colab opens a new browser tab and shows you two notebooks side by side, as shown in Figure 3-4. These are files selected by random from your Google Drive. To select the files you actually want to work with, click the down arrow next to the file path in each pane. The differences appear onscreen.

FIGURE 34Colab lets you compare two files to see how they differ Working - фото 38

FIGURE 3-4:Colab lets you compare two files to see how they differ.

Working with Notebooks

The notebook forms the basis for interactions with Colab. In fact, Colab is built on notebooks, as previously mentioned. When you place the mouse on certain parts of the Welcome page at https://colab.research.google.com/notebooks/welcome.ipynb , you see opportunities for interacting with the page by adding either code or text entries (which you can use for notes as needed). These entries are active, so you can interact with them. You can also move cells around and copy the resulting material to your Google Drive. Of course, although interacting with the Welcome page is both unexpected and fun, the real purpose of this chapter is to demonstrate how to interact with Colab notebooks. The following sections describe how to perform basic notebook-related tasks with Colab.

Creating a new notebook

To create a new notebook, choose File ⇒ New Notebook. You see a new Python 3 notebook like the one shown in Figure 3-5. (The latest version of Colab doesn’t provide support for Python 2, so you can’t use Python 2 with it.)

Читать дальше
Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «Algorithms For Dummies»

Представляем Вашему вниманию похожие книги на «Algorithms For Dummies» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.


Отзывы о книге «Algorithms For Dummies»

Обсуждение, отзывы о книге «Algorithms For Dummies» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.

x