Basically I want to copy (Ctrl+C) only the code portions from multiple cells without also copying the output or the In[1]:
and Out[1]:
What is
Just do: File > Export Notebook As > Export Notebook to Asciidoc and it will be easy to copy paste. This is what an Asciidoc file looks like:
+*In[ ]:*+
[source, ipython3]
----
import pandas as pd
df = pd.read_csv("data/survey_results_public.csv")
df.tail(10)
df.shape
pd.set_option("display.max_columns", 85)
pd.set_option("display.max_rows", 85)
schema_df = pd.read_csv("data/survey_results_schema.csv")
schema_df.head(10)
----