jupyter-notebook

Where is ipython notebook hiding?

一曲冷凌霜 提交于 2019-12-13 19:30:59
问题 I have not used ipython-notebook in a while and I think I'm doing something wonky. When I launch it (with ipython notebook ) I get a web interface that lets me edit files in the browser: but the menus are all MIA there's no way to run anything or add new cells. I suspect that I'm missing something very simple and obvious, here. What am I doing wrong? 回答1: You'll need to create a new notebook. Navigate back to http://localhost:8888/tree , browse to the folder where you want to create it, and

Remove play button display at every cell line of Jupyter notebook

为君一笑 提交于 2019-12-13 17:47:30
问题 I accidentally pressed some buttons on while I was working on Jupyterbook. Now, each cell shows a 'Run this cell (play button)' icon, which is visually distracting. I cannot find a toggle switch/command to turn it off. Is there anyway I can turn it off? 回答1: You most probably have upgraded the notebook package to the version 5.6.0 or higher. pip show notebook or conda list notebook will get you the exact version you have. If the above is the case, unfortunately, your options are limited and

displaying grid of images in jupyter notebook

早过忘川 提交于 2019-12-13 16:36:03
问题 I have a dataframe with a column containing 495 rows of URLs. I want to display these URLs in jupyter notebook as a grid of images. The first row of the dataframe is shown here. Any help is appreciated. id latitude longitude owner title url 23969985288 37.721238 -123.071023 7679729@N07 There she blows! https://farm5.staticflickr.com/4491/2396998528... I have tried the following way, from IPython.core.display import display, HTML for index, row in data1.iterrows(): display(HTML("<img src='%s'>

Jupyter: How do I recall and edit the previous “In:” text?

Deadly 提交于 2019-12-13 16:17:41
问题 In a command line Python session I can press Control-P to retrieve the previously entered line edit it. How can I perform a similar operation in Jupyter, i.e. carry forward the contents of the previous "In:" block? 回答1: Looks like Jupyter doesn't have such a feature out of the box, although, you could write your own custom keyboard shortcut using CodeMirror API: https://codemirror.net/doc/manual.html First you need to create your own custom.js file: http://jupyter-notebook.readthedocs.io/en

Geojson in Ipython display cannot be imported in jupyter notebook

送分小仙女□ 提交于 2019-12-13 16:05:42
问题 I'd like to know why the copy-pasted example from the Iphython.display Geojson won't import in Jupyter notebook. from IPython.display import GeoJSON GeoJSON(data={ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-81.327, 296.038] } }, url_template="http://s3-eu-west-1.amazonaws.com/whereonmars.cartodb.net/{basemap_id}/{z}/{x}/{y}.png", layer_options={ "basemap_id": "celestia_mars-shaded-16k_global", "attribution" : "Celestia/praesepe", "minZoom" : 0, "maxZoom" : 18, }) The

name '_C' is not defined pytorch+jupyter notebook

拥有回忆 提交于 2019-12-13 15:24:23
问题 I have some code that uses pytorch, that runs fine from my IDE (pycharm). For research, I tried to run it from a jupyter notebook. The code in the notebook: from algorithms import Argparser from algorithms import Session def main(): print("main started") args = Argparser.parse() session = Session(args) session.run() The package looks like: |-algorithms |---__init__.py |---Argparser.py |---Session.py |---<many more files that are being used by Session>.py some of those files do import torch

How to use remote interpreter with jupyter notebook on pycharm 2018.1

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 15:18:45
问题 In official documentation, it is explained how to use remote interpreter for jupyter notebook on pycharm 2018.1. https://www.jetbrains.com/help/pycharm/ipython-notebook-support.html It's said to choose Remote radio-button, which is not present there, and event not in the screenshot in the documentation itself. Am I missing smth? 回答1: The documentation seems to be outdated, I created a ticket to fix it PY-29289. Remote notebook support requires clarification: PyCharm doesn't support running

Google Colaboratory disconnects after 10-15 minutes

╄→гoц情女王★ 提交于 2019-12-13 15:00:27
问题 I am trying to train my Deep Learning model on Google colab where they offer a free K80 GPU. I learned that it can be used for 12 hours at a time and then you have to reconnect to it. But my connection is lost after 10-15 minutes and I cannot reconnect (it stays stuck on Initializing) . What's the issue here ? 回答1: I have been able to running a vision training model and it disconnects and stops sometime overnight. It runs hours and may be 12 hours. I also trained the model using the CPU and

How do I provide inline input to an IPython (notebook) shell command?

和自甴很熟 提交于 2019-12-13 14:01:39
问题 I want to put together an IPython notebook with some shell commands and their input. In the bash prompt I can use "here-document" syntax: bash-3.2$ mysql -u root <<END_IPUT > use mydb; > show tables; > END_INPUT How do I get the same effect in IPython, and specifically in a jupyter notebook? I know how to execute shell commands as IPython as "line magics" or "cell magics", e.g.: In [7]: !! ls -tF Out[7]: ['Demo-notebook.ipynb', 'createdb.sql', ... I've looked at IPython as a system shell,

How to uninstall Jupyter notebook that was installed with pip3

独自空忆成欢 提交于 2019-12-13 13:38:03
问题 I've installed anaconda and that came with its own Jupyter version so I want to uninstall the Jupyter that I installed using pip3. I searched for instruction and tried using pip3 uninstall Jupyter , but that does not seem correct because I get the following, which it says is Jupyter 1.0.0: Uninstalling jupyter-1.0.0: /usr/local/lib/python3.6/site-packages/__pycache__/jupyter.cpython-36.pyc /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/DESCRIPTION.rst /usr/local/lib/python3.6