jupyter-notebook

what is the difference between jupyter notebook and jupyter lab

假如想象 提交于 2020-03-17 04:42:33
问题 I am new to jupyter notebook,what is the key difference between the jupyter notebook and jupyter lab,suggest me to choose the best one,which should be used in future. 回答1: Jupyter Notebook is a web-based interactive computational environment for creating Jupyter notebooks documents. It supports several languages like Python (IPython), Julia, R etc. and is largely used for data analysis, data visualization and further interactive, exploratory computing. JupyterLab is the nex-generation user

what is the difference between jupyter notebook and jupyter lab

故事扮演 提交于 2020-03-17 04:42:06
问题 I am new to jupyter notebook,what is the key difference between the jupyter notebook and jupyter lab,suggest me to choose the best one,which should be used in future. 回答1: Jupyter Notebook is a web-based interactive computational environment for creating Jupyter notebooks documents. It supports several languages like Python (IPython), Julia, R etc. and is largely used for data analysis, data visualization and further interactive, exploratory computing. JupyterLab is the nex-generation user

printing bold, colored, etc., text in ipython qtconsole

倖福魔咒の 提交于 2020-03-17 04:30:12
问题 I'm trying to get text to display as bold, or in colors, or possibly in italics, in ipython's qtconsole. I found this link: How do I print bold text in Python?, and used the first and second answers, but in qtconsole, only the underlining option works. I try: print '\033[1m' + 'Hello World!' + '\033[0m' And get: Hello World! (No boldface). The colors don't work either. But: print '\033[4m' + 'Hello World!' + '\033[0m' And get: Hello World! With underlining. This is only in the qtconsole.

How to prevent Google Colab from disconnecting?

人走茶凉 提交于 2020-03-17 04:27:11
问题 Q: Is there any way to programmatically prevent Google Colab from disconnecting on a timeout? The following describes the conditions causing a notebook to automatically disconnect: Google Colab notebooks have an idle timeout of 90 minutes and absolute timeout of 12 hours. This means, if user does not interact with his Google Colab notebook for more than 90 minutes, its instance is automatically terminated. Also, maximum lifetime of a Colab instance is 12 hours. Naturally, we want to

How to recover deleted Jupyter notebook cell?

你。 提交于 2020-03-17 03:53:25
问题 I use Jupyter notebook. I accidentally deleted a cell, and I can't go step back. How can I recover the notebook cell? 回答1: If you go to "Edit", there's an option for "Undo Delete Cells". If you are familiar with shortcuts, you can do cmd + shift + p and then type in undo to recover as well. No need to moving your mouse around. 回答2: First, switch to command mode by pressing ESC, then you can press z to recover the deleted cells, works even in Jupyter Lab which doesn't have "Undo Delete Cells"

How to save code file on GitHub and run on Jupyter notebook?

一曲冷凌霜 提交于 2020-03-16 06:20:48
问题 With GitHub we can store our code online, and with Jupyter notebook we can execute only a segment of our Python code. I want to use them together. I am able to edit code with Jupyter notebook that is stored on my computer. But, I am unable to find a way to run a code that stored on GitHub. So, do you know a way to do that. Here are some examples: https://github.com/biolab/ipynb/blob/master/2015-bi/lcs.ipynb https://github.com/julienr/ipynb_playground/blob/master/misc_ml/curse_dimensionality

How to save code file on GitHub and run on Jupyter notebook?

若如初见. 提交于 2020-03-16 06:18:00
问题 With GitHub we can store our code online, and with Jupyter notebook we can execute only a segment of our Python code. I want to use them together. I am able to edit code with Jupyter notebook that is stored on my computer. But, I am unable to find a way to run a code that stored on GitHub. So, do you know a way to do that. Here are some examples: https://github.com/biolab/ipynb/blob/master/2015-bi/lcs.ipynb https://github.com/julienr/ipynb_playground/blob/master/misc_ml/curse_dimensionality

How to make myBinder.org launch directly into Appmode

[亡魂溺海] 提交于 2020-03-05 07:38:07
问题 I've made a simple app in jupyter notebook and I'm trying to make a shareable link directly into the app using mybinder.org. However, my link takes the user to the notebook and then the user has to manually press the appmode button at the top to switch to appmode. I have seen examples of binders that directly take the user into the Appmode instead of the notebook. How can I make mine do the same? Example of link that takes you directly to app: https://mybinder.org/v2/gh/oschuett/appmode

Python - loop through same query with different variables, merge data frames

假如想象 提交于 2020-03-05 04:38:09
问题 I have a query in SAS where I use a Macro variable to repeat a query to Teradata with a different variable. We have 5 databases, one for each state, where I run the same query, but use the variable to update the state, then mend all data sets. I'm looking for help in how I can do this in python. loop through {state1, state2, state3, state4, state5} and save each query as {stateX}_df then merge all import teradata as td import pandas as pd from teradata import tdodbc udaExec = td.UdaExec

ModuleNotFoundError: 'sklearn' in Jupyter notebook

☆樱花仙子☆ 提交于 2020-03-05 02:16:07
问题 Using Conda (4.8) on pyhthon 3.7, on Win10. I have scikit learn installed using conda conda install scikit-learn . Tried a few things: also installed it in the env conda install -n my_env scikit-learn . Also tried installing conda install -c anaconda ipython - nothing has worked. I can list it: scikit-learn 0.22 py37h6288b17_0 But in juypter notebook get error from sklearn.datasets import fetch_lfw_pairs (tried couple other commands too) ModuleNotFoundError: No module named 'sklearn' But If I