Things you can get with minimal suggestion Jupyter seems to itself special-case matplotlib objects, though the precise integration varies a little,Īlso because you may actually want to avoid that in some cases. Libraries may have implemented this already PIL itself implements _repr_png_ pandas itself implements _repr_html_ (and _repr_latex_). When showing objects, jupyter will try to show things with more than a basic repr() Some additions that you can't do on basic python Specially rendered objects On a trusted LAN you can consider running it -ip=0.0.0.0 so that it's easily reachable. The integration in some development environments (e.g. Perhaps the safest way is to do the above, and use a SSH tunnel like ssh -L localhost:8888:localhost:8888 workhost (and pointing your browser at 127.0.0.1:8888 on the SSH-client side). If you are the only real user on another host (e.g. Permissions are also tied to them.īy default it binds to 127.0.0.1 (port 8888), meaning no one else can connect to it. Execution happens as the user that started it.You may like to skim over Help → keyboard shortcuts at least once. if your editor is annoying about scrolling) Shift Enter (Run, go to next cell) and/or Shift Enter (Run, don't go to next cell, e.g.The main keyboard shortcuts you really need to know is The actual notebook gets stored where you run: Some code editors (like VS Code) understand what notebooks are, and will start interpreter sessions for you - also remotely. On sessions Basic use This article/section is a stub - probably a pile of half-sorted notes and is probably a first version, is not well-checked, so may have incorrect bits. To most users, the magic glue that makes that work is fairly important,īut yeah, it's a relatively regular interpreter wrapped in some "this is how to have people communicate with you". Which of those is significant to you depends on what you're doing. zero installation on the computer you're working from is sometimes also a useful detail.It's (potentially) easier to work remotely.it's more visual than the shell - things like images and plots are drawn nicely, not just shown as some text representation.People have since made "publish notebook to site", "store/load to code repository" to make certain reuse easier.send people tutorials and code to more easily play with) can contain just text explanation alongside the code (You can e.g.you can save all the interactions in you put in those cells in a document-like way - hence the name notebook - and re-open and re-run that later (in a new session).You know how you can get an interactive python shell by typing python?Ĭompared to a plain interactive interpreter, a notebook is functionally very similar (you still talk to an interpreter, it still sticks around in memory until you quit) The Qt console is a similar idea to notebooks, but is closer to integrating with (Qt) apps, which is sometimes very useful. Most people care about notebooks, so skip to the next section. Jupyter Qt console This article/section is a stub - probably a pile of half-sorted notes and is probably a first version, is not well-checked, so may have incorrect bits. Jupyter is mostly known carrying on the notebook thing. this includes some things that basically just expose an existing CLI (see wrapper kernels) Ipython is just one of its possible kernel/backends Jupyter, are a more backend-agnostic framework/protocol than it already was when it was still called ipython notebooks. some tools for parallel computing (due to itself being abstracted out this way).%time - how much time (one run) %timeit - how much time (in a bunch of runs, at least a second's worth? ( verify)) %prun - how much time, per function %lprun - how much time, per line %mprun, %memit - how much memory per function (once, a bunch) hooks in some profiling, via its magic functions:.makes it easier to embed an interpreter into your own project.integrates with some interactive data visualization.introduced notebooks - served via browser, allows embedded code, text, plots, mathematical expressions.has better history than py2's shell did (p圓's is better that way), completion, and other interactivity.IPython is an interactive shell more capable than python's own, and started the notebook thing that later became jupyter. 2.2.3.1.2 Things you can get with minimal suggestion.2.2.3.1.1 Things that do this out of the box.2.2.3 Some additions that you can't do on basic python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |