jupyter-notebook

import a github into jupyter notebook directly?

时光总嘲笑我的痴心妄想 提交于 2020-05-26 09:39:27
问题 Hey Im creating a jupyter notebook, would like to install: https://github.com/voice32/stock_market_indicators/blob/master/indicators.py which is a python program not sure how to do it directly so anybody that dowloads the notebook can just hit "Run All", and see the results option 1) do something like: from https://github.com/voice32/stock_market_indicators/blob/master/indicators.py import indicators.py of course this doesnt work Thanks! 回答1: You can clone the repository from your jupyter

How do I run globally installed Jupyter from within virtual environments?

一曲冷凌霜 提交于 2020-05-26 06:11:31
问题 I'm trying to run Jupyter notebooks with a globally installed version of Jupyter from within virtual environments (using virtualenvwrapper , because I want to manage versions of installed packages). And I do not what to use Anaconda. The problem is when I run jupyter notebook from within the virtualenv, it cannot find the packages installed in the env, it only finds the packages installed globally. How do I set up Jupyter to check for packages installed within the virtual environment instead

ModuleNotFoundError: No module named 'tensorflow.python.tools'; 'tensorflow.python' is not a package

核能气质少年 提交于 2020-05-26 05:37:06
问题 Tensorflow can exactly work at jupyter notebook, but when I try to import tensorflow at pycharm or just in ternminal, I get Traceback (most recent call last): File "C:/Users/g-odi/Downloads/ipy/Deep-Learning-with-TensorFlow-book/ch03/main.py", line 5, in <module> import tensorflow as tf File "C:\Users\g-odi\AppData\Local\conda\conda\envs\facat\lib\site-packages\tensorflow\__init__.py", line 98, in <module> from tensorflow_core import * File "C:\Users\g-odi\AppData\Local\conda\conda\envs\facat

How to change jupyter kernel from Python 2 to python 3?

早过忘川 提交于 2020-05-25 17:26:26
问题 I have installed Jupiter notebook and I only have python 2 as a default kernel. I want to change it from python 2 to python 3. How could I do that? 回答1: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html Follow the link for managing python. If you use python 2, then install python 3 by using this command. conda create -n py36 python=3.6 anaconda After installing python 3, activate python 3 by using this command activate py36 Then open jupyter notebook, you will find

Automatic cell execution timing in jupyter lab

℡╲_俬逩灬. 提交于 2020-05-25 07:15:25
问题 In jupyter notebook , I can configure an automatic cell timing with nbextensions, the result is like so: How can i do this in jupyter lab ? I didn't found any extensions that did a similar thing. Obs.: I know that a similar result can be achieved with %%time magic, but i want it to be automatic, so I don't have to place the magic function at the begining of each cell 回答1: Requirement JupyterLab >= 2.0.2 Let's move step by step Extension availabel in jupyter lab is jupyterlab-execute-time

Difference between ! and % in Jupyter Notebooks

a 夏天 提交于 2020-05-24 20:24:05
问题 Both ! and % allow you to run shell commands from a Jupyter notebook. % is provided by the IPython kernel and allows you to run "magic commands", many of which include well-known shell commands. ! , provided by Jupyter, allows shell commands to be run within cells. I haven't been able to find much comparing the two, and for simple shell commands like cd , etc. the main difference I see is that % is interactive and will actually change your location in the shell while in the notebook . Are

How export a Jupyter notebook to HTML from the command line?

為{幸葍}努か 提交于 2020-05-24 15:37:26
问题 I'm writing test visualization program based on test results. I want to run jupyter notebook via terminal and generate html page to show it to user without showing the editable scripts to user. Can I do that? Or suggest the better way to show visualized test results. 回答1: Also use --execute to get the output jupyter nbconvert --execute --to html notebook.ipynb This produces a notebook.html file. The best practice is to keep the output out of the notebook for version control, see: Using

Issues with tk in ipython/jupyter

天涯浪子 提交于 2020-05-16 13:51:14
问题 I am trying to write a gui for launching from an ipython/jupyter notebook but am running into trouble using tkinter from the notebook, especially in getting the tk gui window to close gracefully. What are best practices for how to make/launch a tkinter gui from jupyter and then close it without killing the ipython kernel? This is my first time trying to use tkinter. I found a lot of detailed info about how to do this with older ipython versions (e.g., iPython 3.2), but not as much for more

How to install 'plotly' from inside Anaconda under Colab on Mac

倾然丶 夕夏残阳落幕 提交于 2020-05-15 07:43:43
问题 I tried to import plotly in Anaconda with code import plotly.graph_objs as go from plotly import __version__ from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot init_notebook_mode(connected=True) but received error --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-11-978bd9a5088a> in <module> 14 15 # import plotly.plotly as py ---> 16 import plotly.graph_objs as go 17 from

How to install 'plotly' from inside Anaconda under Colab on Mac

泄露秘密 提交于 2020-05-15 07:43:10
问题 I tried to import plotly in Anaconda with code import plotly.graph_objs as go from plotly import __version__ from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot init_notebook_mode(connected=True) but received error --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-11-978bd9a5088a> in <module> 14 15 # import plotly.plotly as py ---> 16 import plotly.graph_objs as go 17 from