jupyter-notebook

sharing a jupyter notebook on a server

試著忘記壹切 提交于 2020-04-18 03:08:23
问题 I made a jupyter notebook that can read hdf5 files and use some functions to analyze the data. I would like to put this jupyter notebook on a server containing different hdf5 files and make it available for people who are working in other places. An exemple of functions would be to see the expression of some genes in a sample. Those people could open this jupyter notebook and add a list of specific genes to look at. I am looking at JupyterLab, but I can see that people can read and modify the

Error while launching Jupyter Notebook - @attr.s(hash=True) AttributeError: module 'attr' has no attribute 's'

ぐ巨炮叔叔 提交于 2020-04-16 05:48:50
问题 I am not able to launch or open Jupyter Notebook. I have uninstalled and installed it multiple times, still get the same error which I have pasted below! It's giving some 'Attribute Error'. Traceback (most recent call last): File "C:\Users\Ramya\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in from notebook.notebookapp import main File "C:\Users\Ramya\anaconda3\lib\site-packages\notebook\notebookapp.py", line 80, in from .services.contents.manager import ContentsManager File "C:

Jupyter Notebook Memory Management

两盒软妹~` 提交于 2020-04-13 05:56:44
问题 I am currently working on a jupyter notebook in kaggle. After performing the desired transformations on my numpy array, I pickled it so that it can be stored on disk. The reason I did that is so that I can free up the memory being consumed by the large array. The memory consumed after pickling the array was about 8.7 gb. I decided to run this code snippet provided by @jan-glx here , to find out what variables were consuming my memory: import sys def sizeof_fmt(num, suffix='B'): ''' by Fred

Jupyter Notebook nbconvert without magic commands/ w/o markdown

て烟熏妆下的殇ゞ 提交于 2020-04-11 15:27:01
问题 I have a Jupyter notebook and I'd like to convert it into a Python script using the nbconvert command from within the Jupyter notebook. I have included the following line at the end of the notebook: !jupyter nbconvert --to script <filename>.ipynb This creates a Python script. However, I'd like the resulting .py file to have the following properties: No input statements, such as: # In[27]: No markdown, including statements such as: # coding: utf-8 Ignore %magic commands such as: %matplotlib

Locating a function in a git repository

末鹿安然 提交于 2020-04-11 15:20:08
问题 I am new to Github and Jupyter notebook. I want to find a specific function in a git repository, how do I do it? I have come to know that I could use Git grep, but I don't know the command. Also, can I use Jupyter notebook to do this or do I have to use the terminal? 回答1: I don't know about Jupyter Notebook, but use the terminal. Make sure you have already git clone d the repository and are inside its directory in the terminal. Then do git grep from the terminal. Search for text within files:

Printing a dataframe from a function nicely as in Jupyter [duplicate]

≯℡__Kan透↙ 提交于 2020-04-10 09:40:32
问题 This question already has answers here : Show DataFrame as table in iPython Notebook (7 answers) Closed 10 months ago . I've seen a lot of very helpful posts on using prettyprint and such; they have been very helpful -- thanks. What I'm wondering if there is anyway to print a dataframe from a function and have it output as "prettily" as Jupyter notebook does: My main reason is I would like to use pandas's styling functions to highlight/shade. I also want to print from a function and not a

execute a Jupyter Notebook cell programmatically

陌路散爱 提交于 2020-04-10 07:45:39
问题 Is it possible for a Jupyter Notebook cell to execute another cell programmatically? (i.e. using Python) And if so, is it possible to specify the cell number to execute? 回答1: There is a javascript function called execute_cells that when given an list of cell indices runs those cells. %%javascript Jupyter.notebook.execute_cells([0]) # 0 to run first cell in notebook etc. If you need to run it specifically in a Python code cell, one can use the Javascript function in the IPython.display module

LaTeX error related to tcolorbox.sty not found

我与影子孤独终老i 提交于 2020-04-10 05:22:09
问题 I have a problem with LaTeX whenever I try to download the file in PDF. When I try to do that, it gives me the following error: ! LaTeX Error: File `tcolorbox.sty' not found. Type X to quit or <RETURN> to proceed ,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage I've already downloaded the tcolorbox zip file and dragged the directory into the tex/latex tree, as said in README file, but neither that worked. Originally I used to try to download the

LaTeX error related to tcolorbox.sty not found

北慕城南 提交于 2020-04-10 05:22:05
问题 I have a problem with LaTeX whenever I try to download the file in PDF. When I try to do that, it gives me the following error: ! LaTeX Error: File `tcolorbox.sty' not found. Type X to quit or <RETURN> to proceed ,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage I've already downloaded the tcolorbox zip file and dragged the directory into the tex/latex tree, as said in README file, but neither that worked. Originally I used to try to download the

Getting Altair to work with Jupyter Notebook

戏子无情 提交于 2020-04-10 04:22:08
问题 Trying to get Altair to work with Jupyter Notebook, I installed it using conda install -c conda-forge altair vega_datasets notebook vega But when I try to do an example plot import altair as alt from vega_datasets import data # for the notebook only (not for JupyterLab) run this command once per session alt.renderers.enable('notebook') iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalLength', y='petalWidth', color='species' ) as seen in their quick start guide, I get ValueError