<commit_before>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Save image from Layout"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Use the `Layout` class to create a variety of map views for comparison.\n",
    "\n",
    "For more information, run `help(Layout)`.\n",
    "\n",
    "The first example sets a common viewport for all maps while the second sets multiple viewports for maps.\n",
    "\n",
    "Layouts, by default, are static images. To save a layout image, right click and select the option to  by default and can be downloaded by right-clicking and choosing the option \"Save Image As...\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "from cartoframes.auth import set_default_credentials\n",
    "from cartoframes.viz import Map, Layer, Layout\n",
    "\n",
    "set_default_credentials('cartoframes')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<iframe\n",
       "  frameborder=\"0\"\n",
       "  style=\"\n",
       "    border: 1px solid #cfcfcf;\n",
       "    width: 100%;\n",
       "    height: 250px;;\n",
       "    \"\n",<commit_msg>description fix<commit_after>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Save image from Layout"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Use the `Layout` class to create a variety of map views for comparison.\n",
    "\n",
    "For more information, run `help(Layout)`.\n",
    "\n",
    "Layouts, by default, are static images. To save a layout image, right click and select the option \"Save Image As...\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "from cartoframes.auth import set_default_credentials\n",
    "from cartoframes.viz import Map, Layer, Layout\n",
    "\n",
    "set_default_credentials('cartoframes')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<iframe\n",
       "  frameborder=\"0\"\n",
       "  style=\"\n",
       "    border: 1px solid #cfcfcf;\n",
       "    width: 100%;\n",
       "    height: 250px;;\n",
       "    \"\n",
{'fraction_non_alphanumeric': 0.18465326220763234, 'fraction_numerical': 0.008206811653672548, 'mean_word_length': 2.372060857538036, 'pattern_counts': {'":': 36, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4145308', 'n_tokens_mistral': 871, 'n_tokens_neox': 837, 'n_words': 218}