问题描述
在jupyter lab
(jupyter notebook
)记事本(notebook)中单元格中包含图片的情况有三种:
- 在markdown单元格中显示图片。
- 以markdwon语法插入本地图片。
- 复制图片、粘贴到单元格中,以图片附件形式保存在单元格中。
- 代码单元格的输出中的图片。
但是jupyter lab
并不提供单元格直接导出图片的功能,如何将记事本中的图片导出呢?
分析问题
复制、粘贴图片到markdown单元格中
将上图复制粘贴到markdown单元格中。
运行后效果如下:
以文本形式打开.ipynb
文件,可以发现以附件形式出现的图片,并不以文件形式保存在磁盘上,而是以base64编码形式直接保存在.ipynb
文件中 。
"cells": [
{
"attachments": {
"ab7cc708-c91c-4147-89d4-2dbcfa4a361a.png": {
"image/png": "ivborw0kggoaaaansuheugaaamkaaabrcayaaab484iraaawpkleqvr4no2d vttsbrh51 g7yzpzl3y3dmzfe llxg7dvohqced0bigkomgiqkagik7epaqbehyvjymccgggoggi4goighcrfrsecufheaccrck7fneh7hgtk6sq6i24nqpn fx4vs9vzw831tvw28dfynvjijaigjnn5pdaqjhqkneqiawqercidbareigmebeqiawqercidbareigmebeqiawqercidbareigmebeqiawqercidbareigmebeqiawqercidbareigmebeqiawqercidawluxscq0ot8oqjr0fhh8pppvixjztqtquhwcbmqamjxdsxsgayyprk50z6x0jflxmg5h0sport8ygbfmtse1nuhf2he4e8gdb1arvovrj7x/h42xaiksig6uscnvubjhzf1d9 zyfn n9i3y8tgmr9puria68jbxvt4tomukritoxy61wjigqdrfk0ds3ool9j3w8temrshovkiupr5tlfj3c0azviquui9kjwajvhsknkhsfhyhezmwqodsjptavynlhrjjetbmrdhflkogy972iq51chy/09a5m hgj05mpizl21keiw7pygwjkdukwndrvpzz0srkmh5mukp/elecyz/2gankdf7e5hrc mvqpntc9mfsrdlr1gl/y/fcrybuil1uh4 htsf/gcdohsrnj5wsjbkuwq5w3bm5mzozehqv8aiitw3a/prknx0nrkwhekb87etatqvb3x2t0/jdvv8gxdatrhocbwmeqxclj9cxjyajm in95xaezvnb26wxztj09/r/8dhkxbcwdpphki9hqsk5cgv8eiyz4qg4vg2z9n0ib52sarsvlemgticvry 8vlwqxgyjlt0dntca3sl2 9oxqki8alf6jqk4paqgbse/iaa pj6iioqglt0dfzvx0p2bood98leovdmirfo5seg8dn50ljjs0pcbvwbxy4nf3vcntsrz7m5gm5ogenzxoovtbsk5hptlxj105vnwytwripdt7s54eza5bk8hd/mh9r2t5 /3qcyl65njocmep 9zgde2ptrzmg/dktzionv0dudq0dastloic7o5wrfdvx7pmsch6vdoyg5hzy94vgjybvyv0 54flsthi pd ob7 j9ot3vlkhc8gdd0ihv35487wgxhw0b6 u6211tswjjkwnolpw6wzhjeun9 qtgm5ogfn5s3bvfmjq4opcivce2nufnzbg964qtwxa dxbypibvpulyskompzst1s0odbzbqhg1ckl2z50vxdlfiybsxozmc7f1iz2a77ux2t6ze7dedsdjmx8egthsvjjg7hz0wbis5v8d5mzzyw /cvlfkljo5wdpeiu92l27zhuam 9/fclp6psaz2mo0dkzct dkhbzmrdxegkqhbqfmqeuki/1xctzmp39qqzh499ffhjwge dth8x5ld3o zyioqxqdnniygcid9/a56l xsldq9nxosnjnh8sne25e26l0izj3ngmx edkf9h9zny5ys0vlr39urn1gg43hysr0dnb06x9egvkvrd1bgkmftll28ca3iux xsc4i48a2nuffubffcyuipgh3vzpamjaiypvf7yhycyaivpcmisvh4vjbxvj32w9pnrz8 2ducv0o5uscx5ijl6wkvvoylimhgp1/jha3fgvnirffwsddnihqlme4hyfxw8xozzxcqk32a2rrsddcjoocs6za40wjqbkvt7v6ifwmouxby2rknolnsmuamznu2khv/v2hhbtywsghohp2pbqa7ujftz 6 wbr3tei1rankcouq1bgek1pb2agton2gevuth6j469ezy0ygrbv1ddw534bmu 14dllgkthclby5qpa c12gye8rjx6ipg/gvzxhqykz2oolhvyhgjelzwh/ijzdjenoetqgq9hbk3bmjycd8sq3ijzh1joathffq1xxjjl54y1n36cfqtmq1qswsbdhvfw/ofrrp/st8glcegd0btivgvewoooffohco0isiyneowwasmvy7pkyakpkwz/b3/pagw15gpozg4gxrcw8lrvrzeofmxthp7npssgv92oty6suw8jfg qsokdtzz33olacqqbldzovqv9zod5twwhduyn1flkaag1fg19e22vmzgx321tx 7dtjsn5fgitdy5lpssuycckc66euva67/o6dc485w9vzl9rnlf04xh6 kuz35 lhfsuxoubnmq/iby3gowsrhkov4q811wjdyprweeubhnj6ainwgmd0cd0btbv/kciztx0wqyxm6fl40vhe2/ripwmbrdhsdmu6i6xhfnwzxql ahmccjhchuybkbosdcq1w30hc/2kymefgusle5vjcnwz/uzynumyqb1lb8yv8dxdlh3w0he8lcv6oyxvbucn7zmauv7ediofwzodx9yhdfyn5lsfqvchn1udvxcxhrwvzcesxfvu369rp njslazshllqw07pxiolytapedcjrwu0679ldqevj4zo9rdlq1ygrimiaqxd67glb1at3rbfqlnnxlyscaz/7hvlctkes9ia/awmi9ztjzaf/gfv//sp4o9zczhfcy7gdrkz7gwvshoreaooyjemjlreragxeywireijwwwpeog0ha8ynsdp5fil77deyuqsxduuw4a//iaf5uvcwc9gyfaq2qqnkjhygz1cxboixdosc5yt/r os4mcj/if6ncemtlai/3gh1ucxq67snonxc939esptrj74 vri0mgdepi4u2u57nwzfptotk56jehewyewxgboxa4fh2gs6 fvr1egrwk1lzc1uvrstluitruryaagobyatp1llhvgoeseko /advubd2fy0uerlftybkbqsxwx1hnzuhm ff//oxnc1my8oxf0kgrq0u8sacvyncet4rzcf32ksxfcr2bylwlufjuamawx3a37ewbumj owxx2bn8ilymz5bqn06vmf4oinumfjgrsgkcigynitnp3n/h2wbbxlxkozkbdr x8 evpfk4zjlzu20zdbg dz3/gvdr2uk7xecq9/rgjzxwblfvpexl9421gcig vl6b0yozvzcxghjcdmpbvqxzvrbt2 rwsatburko7xubxticczend3pimmup1rsirgnh1cbgexs2/rfogilv99jk1ffyydyxecnemtsgz8as5ykyts2awsqj6fm7z8 2dcevrjktaflui/2h7xe5wndbmbrthosp3lh aw yvss5wh1oxpso7z34gzdcfs3xegkcirdjo/uc3bogu4qj49jesg19mt8jnugcsfnwkcpzlsg7opcv0dqqanefe6 waxytksmmpz2w3eyeztejuxjiiiortbezecvw3u3qsl er1elq5rvvsaexond2vd3vx6m5rbfgumj8 ihm jnr7s3z khr374fe1rx1fn4qh3ywn/z8z7xz4g5zhczwb7jo/xv819mobbk0gyxwbfmgousoeslfqsatcsuynsilgb9qtngy9ree2k2b/defw 5/zidsbh0ifpnjlk8zgsmdegk7bf42vlcwc9f2kqpq063aqehcxshxoiih0os3y7h5mj5o2rbe28 ligqo992jznpisz hdr1vuwa 9u11huhefu49fgkqfs8vl4rny8dt9lbrj3 ffcuxuuxknqs/e2d1kmrkzcz6oxpkw3q3v1xg3uetxbnq ohk5nlbjyss4/iy47m6ouzafpvd3kwihrkci0pwltg31wsn4q4ocvoa/7qvify6ejflf4jtaoja29w4ge nekb2gasczn flswwtgsg4u5mkdz v84zxzxcsk/ya1ui80qyfed2n99jdc5m g1ehka4n3rgo6axazfihzboijluaijdld16zlnivvf5bnjzporybqxym/v0zza/r3pp9ixjfwmijpwybg6ntcbozwuncjck ctp8lx33hn554xqi87dzps7aiecbqylgvmu8pexwonaks9loywy/v0eylsi0iyd2xtowts5rvqlnor4ukelrergum8iy7ajww/z xd8hce2q7gyrsrvmf4qpy/lscgh5bmrzzlnspykgtzahxhlutriygxmuu5i/pwbtizfir9i82w1 w7xbwmca0xfmzznxc6fufkwlnc1aecpu6qvg5qrel/vr06eyy61hja8kef8ozrdbewxy20q41fvgvaieliuucxo131vjtsi5cn6p/6jbquger5/qyrj9bp6qu1brwlvo9yp3bg ohkfnh3qdhrtdxkyr190wnb1aqpt3lwoi djx/9e/hbv6ncvwk c5rid6ojs1slkdvxnrieegawsrfupyvqrfih8axl2ah1arzcjnft1rhzxdeuf1gvhwuk2amo3xjs dsx6cni4q4ogtkfdlt1yyi5ebcdf4rvx1cfr/8heazsdw1d3x4vkbyhqxwxmqih7ow2mopl2zjfygw4name6nkzodmgfh0jdkqgaa4fpjy/29po65 he6pithtfdjty zntlbojovuadeoemwsjuzusvq gogwy/xomxuajl9qdlgmjnpr2gjjqrtde8darci25aqz/8x quh 7xspesh uwab//ipu5qrxid2mzqojsxsndjmczwyey/h kjfwcxqdvbtptmvr63kyawvj1p4/vk0xidqmxddp yfmzv02pkaly8/u3tptu2iempc13x2dtli/tru2ddx08kbafi4ablbfbe/00fitpj4 ffuxgrjpixlzgbldnalqb36xyhxesktxt9 5bcnlfaj3bqpl2aiei/ oy8ijuc2kxl2tsahp5 lopnuwji0qugelhso0z/tki7nwwgoglrerug7uql2ih3vzsrcnrebijc88ll/hus9 iwz/frgq4yf160zax84e2iwr8lhqcpjgsy1jhdmyiyks4esosrpjenqfvotorbzsbddqfepbytgttuujz7ry4znz9uh9gi8fhut5xlj ifjcn0nlwlvozhrbaekz00ckusuobl4 w0gl1egqiw9pvausswsrxhbwujcchf1zv6ffrrbn/bklmt4687au5vwml/gqf qbtsaf0my4wf2ao5mh6mznqbrjk8z xoertxfjcjleolkkwfvuukryky6q8uj6ltieneplify9ypp2vnkjquwps2lzuopa7jo/oowqjydti37vemg5ns2b7bh/aka0skskucgkpri6kalyugen fpvc4bomyki3/3oleljflyykov qbd4qnwibmpjzo 2hb6afwynohntuhge57wtm1jkq0namepjffav54 23ah0f/jq4owgknnfau1dw 5buq/vn0z/n0zr2gh7khdxsregjorxcywb5dkkksrzzzvsdgqrvveora3kqhpkmepjqdq9iwghlm9qdzdxvv bfiiz4xxkhfcxelsuhwvzjfdrl3p9tm4u7tlrkidvth1la7kwe6c6l9jdgkw17svwb8a2x1tlypbobqaem78syuhueu1oifsu wr mrlzv43mufmnqgcx6r/u /y6g9qwlx9ni66p31zk8ahlijmglvml/uralpkh75x8aqnyeokcewazdtpqv7725dttpb7c5sxe8kyvvlnjxuii2kymidcbje4czfdlxtjpudrb5vjmg0spdbi8wuw7j1huxnnvn1l0jacrv1kj8visqfvbwh/rrcjkz6suuc/k9fp317ud1kfpallbbm70if9aqaclzlek hnurgjv6kknq30coe4plxkpyhr5rwk0omrc2pwm 47hpylrmvf2xhip4ohojxf4cyb5 m6s9wktbz8nc9vvlpjxel1zmuukr7zsie3x/ ryqhifvleeiupyslplzul8ihoulop/i7l84mwam wrpybecriu51y 9jr3txrk rfr505ao5rowsznjzubzuxo6xydpi963ta8axyfri1hlq 07gvydu1jdpr3idttl9b90omh7xqpzshprl84frsa6yaex9aaesrjkw jzklvhtsizaytx0orqvtqo/qdek3hxfvqasqpool/nx1dgu taevl37z1c6vcwww1qx5uvx2nymeltwhbhikpeqlifauhwrqdtszy84okpdjaq2o7rvh6j/njfaoq9sk0vuzhlfc2yg/vmypdceuixnlvpv3jlcrgln2ie1k057oy/w/4 fsz3ll/3i2dr68vrf6o7dtozdxdtmfofjgo/cnzhislpghzevp9 0vwc9durpludgv1kkpzqw8tcwqlkxbe3jp/aety8quustblam56nvr/lzroqxxhj9zm3jqv6nfx1zsjgzy7terhvarkvlvqxgzg6nqxdbaexodztaxnxgmkwh2vhs213hx/driekasksum 9vyo8culhdu3isksg9s0dihozohhtbniohomli4uwgs1qgm9tcsbu4221ijt4cmovlcbmtp63gxors2nblrduy68/hoi5etb0debc9xyr8ylporkda2fl3o9qw8tremz7yxymgvfilwm4uhte4iy z3fys ge39qkvxge1lai5g/ 7289lrxvrqvt5ob/biisiiztw2jvujppx2agyq23czns4ehlf28skdannflahumyf6vkkyhemrt7pj66r9smpiikspgcfd6hslmv4125xsy70lgyvkyojmewuocpikcyfitmaiwrqkn3ao7vw1fzv8b929qv4oul/2p2vhk097wt6vsmophe/gqpdz4 usvierpxcjlzbpdrpa6fbgvexua 66eum6qfw9vtd3rhv1qefcyusfqq0upyhtbwseuw1e8/scpeqlifk0nt1vvceqvsvc9peebstrevabuegszx3wlpiyhqixzveusn8qth2q8imtvgalwxc8bv5 qoh7euwldgfhof6r9au0bnryqqjsecfvndhn2xseddigqkddpt/pqlzycngghxczwlf ksa4xdu0te51pe0cx5e0qw7f 0 dpwt2ouvh5/spvu0ykusuoevsguridjzdz3 ko2mm6oonfx9ebekirsg94giboj qs13g8fkfzzukcma69gn6t3zey3n4orlvjkdsjwylckgp9oiz1w3akf0onkqc4wiz j88mtv w/quqq2qqln4cowhh8pp3h4 pd0ldwherienbybhef7b6zmnobl6p8yxlse1lr3ssemhbofd19cwrwebworiitzik/lpn0xyvdx0ghj5eulydgieqmqihaus13/icck2pnie 4shibxeonzctxx8mxssql158f1lueye7z2dcog2vczfukobhtyretuikumhyc8ajfv1efuqgvghkiesqgewvbbhvx lrqepkxr en gikvky j7a3xpcvw9tsirvuj6xhyuxitrtvhtrwcbfdwwibust/wqo8o5mszfifapogxjbrdikxiylrk0cb9dia9eiisddkxw8yy3c83wunurw8dclg yfw1etcwq1ivgoiitby0xllew4jexppqxi1ontg0t73z/qwt i5uoanjzvorm6bq0ntwi/ 5necyoegj5mg5eqcjmfeqmbwaarcyhaabejgcaaeqmbwaarcyhaabejgcaaeqmbwaarcyhaabejgcaaeqmbwaarcyhaabejgcaaeqmbwaarcyhaabejgcaaeqmbwaarcyhawp8bmi/x7zpd msaaaaasuvork5cyii="
}
},
"cell_type": "markdown",
"metadata": {
},
"source": [
"![图片.png](attachment:ab7cc708-c91c-4147-89d4-2dbcfa4a361a.png)"
]
}
],
将上述base64编码还原为图片,如下所示。
代码单元格输出图片
在代码单元格中输入以下内容并运行。
以文本形式打开.ipynb文件。
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
},
"outputs": [
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 1,
"metadata": {
},
"output_type": "execute_result"
},
{
"data": {
"image/png": "ivborw0kggoaaaansuheugaaaxoaaad4cayaaadiry33aaaaoxrfwhrtb2z0d2fyzqbnyxrwbg90bgliihzlcnnpb24zljqumswgahr0chm6ly9tyxrwbg90bglilm9yzy/z1a gaaaacxbiwxmaaastaaaleweampwyaaaobeleqvr4no3cf6jd9x3h8edly1pgdxbmtlysmpzfmhuy3a21g1bxjhkfgepgp6z4g7ja1f2xzyhfp9wspwy2y8hel7lg0jktk1tjqcwkpwgmu7xity2iu7pwb5tldk6hyoa07/1xvphjxw7ose6553g/et7gwjnf7/ee /6y5hm/9/s911qvkqr2htppasrjy8vqs1ljdl0knc7qs1ljdl0knw7vpadyam2anbvhw4zjjyfjk8qjjz7606qaoti d13on2zywmzmzkthkkqvjclpftvnprtjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjapyhl6tggxpjatza0cfznmr/kicw2z8ktysztbinydkl9p qzc7j34xqaens8iy5o78d2hyi/rccg7uprcbtc/z/edh1jmnjkpzuyoirahfw8ieo2qlsqj7dwiljtgfi8mvaycd3rzgsjonwjeia/vrghb7nc8dajmcaxwwug/qcsbymmukymz8/p4krjekhlofn2kube6pqbtcbvbwtqqaranpqamozr5kko8 qebzgpmb93/n13bapaeclurp4h7a6ywtvdf0ivqykauijcp1o4nokdwefbv6tqpea3z9wqjirgwkjl0njnzd0se4elgdwjjkdbgsoa6iq24f7giuaweb14krlglasdpgghr6qlhuwv4brbhxzb723auqsxszfjjwkxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swqcozekxhl6swrcwnan2z5kf5inftmfjlckmu2yj8nz3fzftfjwkr3d9t8b9fcspmggoao/a9h8ip0xahu7j63abd3214hlq rd3ef/dzitj3hssdirwtxogkralwtdiq7zauyoqgj2jzkxyslv9uzfa7yyzd8wbbyyxjklsydhfnfo1wiv9d2f67a9lck5wgrg2rf8punsyvj2m7fjtgg dlxvvt9b5jitswaszmzpzy/3sjj0vblf6pcb6/uer u2keqe4lvadvw1e7exqkptvtvdvdntu1mjgemsdmaoqr8tulx79825wktv9vks1ca/07t /60rfb1j0heyedm2yz3abccajhpajcbxafv1o3apcbews dnld1n/oz4opasumu7lzdwvu/hn34kqrbhnnxzwud9hdwzug2fwp4xpgpjkkabx8zvpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpiaz glqxggxpianzd0sbyn2z/kiux2j8ktswat7elydt k5l8a/dxxsghlyqnz5gz juazyfyfygwsfvyctwgkoqxgbubjwlnadcmef9shpukhb5vgw6oql1jnhzikc3ajqoqyhese5ocalwa3fdvlwmkuy/en4w7lzz1iv78o3t58sx/wq6xl6rltemxtudg3/7wyf93fnfo1wiv9d2f67yttv3/sbi1yuysmfn5 rgmjek6yoaz/thu1tzgg8d09hqd6essx3dcsvrprnfgvw9y3/d8xbdtse2spdeareh3apd37745f3i1ql4c7gu let93u3yt3xbjeljnpdstzi76d1yxznkjt47ay4dqkrbgxuai4bz4hxgqm7fy0m cdzsvdrnb27msplgz5h33vw2yh8b1yyybzuw/chgkysngr8zk0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1lihqp9kc5knk8wmuf4g 09ncn spukesrkub99fjtmb5kkktytjkbcgstq0gafpcixwk3ahsam4lmmmbyd9bdhrvwccnwff7j7314hfam4ezga apw/suklsqmnc0z/djbbvc9v1rvaxccwbcdsah7ohj/yt7 a9wkrgfcaxwh/vtshjundgyb0a4ex p7pddv6pq5c0j3 nhb8kpoq6mf64x p 7i3qp5a2sispmmxqpux1whnj3mm3qwzfcbbsx4zob1yr bwyesnlfwk5nsttktzgz fn5ei0msyljq7wpw9z1f1217w1w9wfwxvnvzwa3dtlfond3vrqrxquo14hvaxxz garavlxtvtu9ntv1zcurjb3umkf/bniy5injvgoxajv7d0iyjsmb1/ocsl17/dy9m/1vsy6jd7bvprtjgqoboa qn4frgxvprfruqtqb5kykf3ehxqa8neqz4gtgs932bwhpaj idx3/8ar6zmixiek6lftvpgd4h np6zqzmzn0gjk0oir5tkqmd7bp34yvpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmyzeklqnkgxpmynffokm5m8nwq2yfuh2x9qkvut7enyujj1ffs kot7sz5k8mssdsocx5i0wmdqjzkwubw4engexjzk04ldvglsqkozgzual/ft2whcxfwna ca 0cxucrpomoc0z8dzfbvc1x1bnaxsgxbmzuab7rhdx7y331dwfvv9wfu1wtv9fpijpckdwwy0k8fxuh7ptdt6/c4cen3 npa8uloak4dxknyt0kes3jz9xpcoytzmmqmycz8/pzhr0kstkhr3yy9djg/ywpa ca 4c1gfxbet/8jwieakxd clvtq6rpqpqempoa0uisjbgu9pua9x3p13xb3lzvl1bvjvv1fnbdt 0vemf/p wu 7wjfbs4ewrzs5kgnezohwe2jvlgktxapcdo/gosrely4lw agzv 9wtkxw4tf8e8otsx5ykdwtg6lsz8wube4gngluram sm5jc3b12afb0kmeak4evdz/7fr3lnvcn req4gsjx4ukavgpqknp8a7t09m1mzmz6tekauvj8mhvtr9sn78zk0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1dhdl0mnm/ss1lhu1arneick88bplvasa4cfjmiclejow/prtl5wzuelpaz51kqaotiod13olyrjtfvnt3qoctra1ny0rrdc89fiudbsprtjapyhl6tgtrj6bzmeyakotjufbesf13y0wjy1n3enxpl0ti2e0uus hh6swrcigx9ks1jnk4ym t6g x/t5jvdvt/kgtdbmycqshw/mdjnkyyj8n9su6dxjyjngjnfcf9tpjksulfijfmmpn8pvuz3pvkh8y946gn8xf7a0ketpjy9/f7oknmospjtifzn sjrfynys3df489sc5e8hetqhx1arwlpat8cfgnpa5swndm1cdt3enlgw9oeu4xrpk3gz/rhn/ afhzd9zxwc5gnza96bnh8oe8exgmeh/3/bcnpfcy1rwn hz3ebpw40npvcq1fxw4g3hikf0xad8dapwl/gcpx3mlntgfa8xw1xnv9qzwf7blwtfbgl/vhn8l gssjhhguru45qp6skpe757ubtaneczrg bpgeclwf8a/z3o4zbjmgv a dwqvppgkrap yzr22ynrdwqvf454exxzjfyfxvludlqxyybdhrpbube5ocspsvurjdvxz4oe/5xlftomdu1zvaq8bjy5lueqyz5n6fo3dgsjinxhp3i 36qvruoadbrsp8oz8gnjbkx5lstrj5bnmtj2hw/gfaz5pmafcafzie0sbmcp 9d7rqsepoxsfjz4fp4pxjz7kckhwd/bvw5yrhgbdv9c7fxedvp7zdsx6lql6z5fdl7dlgjqr6apkpav9pckzv/wzsg60uk/gmfh wvu/5um7bqy9jsorej3v/mzbplscwaybjbwe3abdx1f mabblmmjnxwnnaa8l tg9a5k7v/gn2wh noeanvx1v1x1b8az9mk/ug2z5s8bdwnu1cpae n9z79ands/98oxekp/claxyqetrkz3s3xngmn2ald0j38xekc6uxwr1ma1jzkl ft6kv/p121hwjqr6twqwlnvg6pqa737ehdx1cxkxh2jyf5uf5ve2txj1tc7lppcggcctwhw/dzwsyakp9ml/fxypxyvncdl3btvzgveraqxlvkck 7stvw9mera4f56d y3v9xejdcbm1w1e/g7ej/ezdk76xhp5czeuihxfdpwpuafu/voz1fvxrmbeomgxhnthlzzvccnkjwjvax8avwt2j9wh1zznwbfs/jh9g7mxrmst9ys3envm/wa7r7djcbxafv1o737ebcbs8drwfvl/por l xjgkik/hsjstpmbh6swqcozekxhl6swqcozekxhl6swqcozekxv0fi4cahny3t8aaaaaasuvork5cyii=\n",
"text/plain": [
"
将上述base64编码还原为图片,如下所示。
markdown单元格本地文件
"cells": [
{
"cell_type": "markdown",
"metadata": {
},
"source": [
"![image](1.png) "
]
}
],
结论
markdown单元格中的粘贴来的临时图片和代码单元格生成的图片都是以附件(base64编码)形式直接保存在ipynb
文件中。如果本地没有保存或者上传图片,可以通过base64编码保存图片。
markdown单元格中的本地图片将不会保存在ipynb
文件中,仍然以本地文件形式存储。