\documentclass{article}
\usepackage[affil-it]{authblk}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{latexsym}
\usepackage{textcomp}
\usepackage{longtable}
\usepackage{tabulary}
\usepackage{booktabs,array,multirow}
\usepackage{amsfonts,amsmath,amssymb}
\providecommand\citet{\cite}
\providecommand\citep{\cite}
\providecommand\citealt{\cite}
\usepackage{url}
\usepackage{hyperref}
\hypersetup{colorlinks=false,pdfborder={0 0 0}}
\usepackage{etoolbox}
\makeatletter
\patchcmd\@combinedblfloats{\box\@outputbox}{\unvbox\@outputbox}{}{%
  \errmessage{\noexpand\@combinedblfloats could not be patched}%
}%
\makeatother
% You can conditionalize code for latexml or normal latex using this.
\newif\iflatexml\latexmlfalse
\AtBeginDocument{\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.tif,.TIF,.jpg,.JPG,.jpeg,.JPEG}}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\newcommand{\truncateit}[1]{\truncate{0.8\textwidth}{#1}}
\newcommand{\scititle}[1]{\title[\truncateit{#1}]{#1}}



\begin{document}

\title{How To Insert Jupyter and IPython Notebooks in Authorea articles}


 \author{\href{https://www.authorea.com/users/77723}{Authorea Help}}


\date{\today}

\maketitle




At Authorea, we want to change the way scientists communicate and share their research. This includes giving all the information behind figures a place to live: by letting readers and reviewers access your data and code, your results can be easily reproduced and extended.

\section{Adding data to articles}
It's really easy to incorporate Jupyter Notebooks as well as datasets in your articles. \href{https://intercom.help/authorea/host-data/data-hosting/hosting-data-and-uploading-files}{This guide} illustrates the step-by-step procedure to easily add any arbitrary dataset to an Authorea article, by navigating to the Data folder, and adding files there (they get added to the Authorea's underlying Git repository). asdfsaf

\section{Adding data "behind" figures} as d
You can also associate data and Jupyer Notebooks to a specific figure. \href{https://intercom.help/authorea/host-data/adding-data-behind-a-figure}   {This guide} jh kjh kjh kj nmbmnmnmnbmsdafsdaf dasfasdfsdaf sd sd sadf dsaf

strip-table-contents-paste\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.84\columnwidth]{figures/data-figure/3342415745-cc6670e15b-b}
\caption{{Polarized crystals of 2-3 dideoxyadenosine, ddA. Photo by Kat Masback CC
BY-SA 2.0
{\label{232332}}%
}}
\end{center}
\end{figure}

\section{Adding data to articles}
It's really easy to incorporate full datasets in your articles as well. \href{https://intercom.help/authorea/host-data/data-hosting/hosting-data-and-uploading-files}{This guide} illustrates the step-by-step procedure to easily add any arbitrary dataset to an Authorea article, by navigating to the Data folder, and adding files there (they get added to the Authorea's underlying Git repository). 

\section{Adding a Jupyter notebook}
While data is fundamental to open and transparent scientific communication, how it was analyzed and interpreted is also important. We make it easy to share the code used to run your analysis directly within your document on Authorea. Simply hit \textit{Insert Code} after inserting a figure and select your Ipython Notebook to insert. A code icon will appear next to your image that when clicked will open your notebook. Try it by clicking the code icon in Figure \ref{603904}. You can read more \href{http://intercom.help/authorea/host-data/integrations/jupyteripython-notebook}{here} I am writing here. I am writing some more. it seems to be okay. Let me write some more and see if there is anything going on. Nope.sdfsdfsdfsdfsdfsf I am going to write some mor\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.98\columnwidth]{figures/preprint-inset/preprint-inset}
\caption{{Volume of preprints posted in hard sciences (arXiv) and life sciences,
from 1991 to
2017.~Source:~\href{https://arxiv.org/stats/monthly_submissions}{arXiv}~and~\href{http://asapbio.org/preprint-info/biology-preprints-over-time}{Pre-Pubmed}.
{\label{603904}}%
}}
\end{center}
\end{figure}



This is some more latex. I am now going to type and it seems to be working fine. Cool. no probsdfsdfsddfsdfsdfsdfsdfsdfsdAs seen in \ref{232332}. This is math dfsgsgsfg it seems to be working fine. I will keep typing here and see if the errors arise again or not. Nope this is cool. more.



fghffghj

\selectlanguage{english}
\FloatBarrier
\end{CJK}\end{document}

